UNPKG

mathjs

Version:

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif

8 lines 297 B
export var filterDocs = { name: 'filter', category: 'Matrix', syntax: ['filter(x, test)'], description: 'Filter items in a matrix.', examples: ['isPositive(x) = x > 0', 'filter([6, -2, -1, 4, 3], isPositive)', 'filter([6, -2, 0, 1, 0], x != 0)'], seealso: ['sort', 'map', 'forEach'] };