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

11 lines (9 loc) 241 B
'use strict'; /** * Test whether a value is a collection: an Array or Matrix * @param {*} x * @returns {boolean} isCollection */ module.exports = function isCollection (x) { return (Array.isArray(x) || (x && x.isMatrix === true)); };