MCPcopy
hub / github.com/autoNumeric/autoNumeric / isInArray

Method isInArray

src/AutoNumericHelper.js:224–230  ·  view source on GitHub ↗

* Return `true` if the `needle` is in the array * * @param {*} needle * @param {Array} array * @returns {boolean}

(needle, array)

Source from the content-addressed store, hash-verified

222 * @returns {boolean}
223 */
224 static isInArray(needle, array) {
225 if (!this.isArray(array) || this.isUndefined(needle)) {
226 return false;
227 }
228
229 return array.indexOf(needle) !== -1;
230 }
231
232 /**
233 * Return `true` if the parameter is an Array

Callers 8

filterOutMethod · 0.95
_parseStyleRulesMethod · 0.80
validateMethod · 0.80
_shouldSkipEventKeyMethod · 0.80
_formatValueMethod · 0.80

Calls 2

isArrayMethod · 0.95
isUndefinedMethod · 0.95

Tested by

no test coverage detected