MCPcopy
hub / github.com/autoNumeric/autoNumeric / _checkValuesToStringsArray

Method _checkValuesToStringsArray

src/AutoNumeric.js:2388–2390  ·  view source on GitHub ↗

* Check if the given value has a corresponding key in the `stringsArray` array. * * @param {number|string} key * @param {array} stringsArray Array where the `key` is checked against its keys * @returns {boolean} Returns `true` if such a key is found. * @private

(key, stringsArray)

Source from the content-addressed store, hash-verified

2386 * @private
2387 */
2388 static _checkValuesToStringsArray(key, stringsArray) {
2389 return AutoNumericHelper.isInArray(String(key), stringsArray);
2390 }
2391
2392 /**
2393 * Static helper for checking if the given `key` is found in the settings' `valuesToStrings` option object.

Calls 1

isInArrayMethod · 0.80

Tested by

no test coverage detected