packages/polyform-config/index.js
function tryExtensions(p, exts, isMain) {
  for (var i = 0; i < exts.length; i++) {
    const filename = tryFile(p + exts[i], isMain);

    if (filename) {
      return filename;
    }
  }
  return false;
}
function tryExtensions(p, exts, isMain) {
  for (var i = 0; i < exts.length; i++) {
    const filename = tryFile(p + exts[i], isMain);

    if (filename) {
      return filename;
    }
  }
  return false;
}
function tryExtensions ( p , exts , isMain ) { for ( var i = 0 ; i < exts . length ; i ++ ) { const filename = tryFile ( p + exts [ i ] , isMain ) ; if ( filename ) { return filename ; } } return false ; }
given a path check a the file exists with any of the set extensions
given a path check a the file exists with any of the set extensions