MCPcopy
hub / github.com/autoNumeric/autoNumeric / filterOut

Method filterOut

src/AutoNumericHelper.js:1413–1415  ·  view source on GitHub ↗

* Filter out the given `arr` array with the elements found in `excludedElements`. * This returns a new array and does not modify the source. * cf. verification here : http://codepen.io/AnotherLinuxUser/pen/XpvrMg?editors=0012 * * @param {Array} arr * @param {Array} excludedE

(arr, excludedElements)

Source from the content-addressed store, hash-verified

1411 * @returns {*|Array.<T>}
1412 */
1413 static filterOut(arr, excludedElements) {
1414 return arr.filter(element => !this.isInArray(element, excludedElements));
1415 }
1416
1417 /**
1418 * Remove the trailing zeros in the decimal part of a number.

Callers 1

AutoNumeric.jsFile · 0.80

Calls 1

isInArrayMethod · 0.95

Tested by

no test coverage detected