MCPcopy
hub / github.com/josdejong/mathjs / filter

Function filter

src/utils/array.js:536–542  ·  view source on GitHub ↗
(array, callback)

Source from the content-addressed store, hash-verified

534 * @param {function} callback
535 */
536export function filter (array, callback) {
537 if (arraySize(array).length !== 1) {
538 throw new Error('Only one dimensional matrices supported')
539 }
540
541 return Array.prototype.filter.call(array, callback)
542}
543
544/**
545 * Filter values in an array given a regular expression

Callers 2

_filterCallbackFunction · 0.90
filterTransformFunction · 0.85

Calls 1

arraySizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…