lib/grunt/ngDpTask/ngDpTask.js
function findScript(scripts, property, value) {
  for (var i = 0; i < scripts.length; i++) {
    if ((Object.prototype.toString.call(scripts[i][property]) === '[object Array]' &&
        scripts[i][property].indexOf(value) > -1) ||
        (scripts[i][property] === value)
    ) {
      return scripts[i];
    }
  }

  return null;
}
function findScript(scripts, property, value) {
  for (var i = 0; i < scripts.length; i++) {
    if ((Object.prototype.toString.call(scripts[i][property]) === '[object Array]' &&
        scripts[i][property].indexOf(value) > -1) ||
        (scripts[i][property] === value)
    ) {
      return scripts[i];
    }
  }

  return null;
}
function findScript ( scripts , property , value ) { for ( var i = 0 ; i < scripts . length ; i ++ ) { if ( ( Object . prototype . toString . call ( scripts [ i ] [ property ] ) === '[object Array]' && scripts [ i ] [ property ] . indexOf ( value ) > - 1 ) || ( scripts [ i ] [ property ] === value ) ) { return scripts [ i ] ; } } return null ; }
Fetches a script from a list of scripts.

@method findScript
@param {Array} scripts The list of scripts
@param {String} property The script property used to identify the script to fetch
@param {String} value The expected value of the script property
@return {Object|Null} The found script or null if not found
@private
Fetches a script from a list of scripts .