index.js
function (prebuild, napiVersion) {
  if (prebuild) {
    for (var i = 0; i < prebuild.length; i++) {
      if (prebuild[i].target === napiVersion) return true
    }
  }
  return false
}
function (prebuild, napiVersion) {
  if (prebuild) {
    for (var i = 0; i < prebuild.length; i++) {
      if (prebuild[i].target === napiVersion) return true
    }
  }
  return false
}
function ( prebuild , napiVersion ) { if ( prebuild ) { for ( var i = 0 ; i < prebuild . length ; i ++ ) { if ( prebuild [ i ] . target === napiVersion ) return true } } return false }
Determines whether the specified N-API version exists in the prebuild
configuration object.

Note that this function is speicifc to the `prebuild` and `prebuild-install`
packages.

@param {Object} prebuild A config object created by the `prebuild` package.
@param {string} napiVersion The N-APi version to be checked.
@return {boolean}
@private
Determines whether the specified N - API version exists in the prebuild configuration object .