MCPcopy Index your code
hub / github.com/nodejs/node / isArray

Function isArray

test/fixtures/snapshot/typescript.js:1821–1823  ·  view source on GitHub ↗

* Tests whether a value is an array.

(value)

Source from the content-addressed store, hash-verified

1819 * Tests whether a value is an array.
1820 */
1821 function isArray(value) {
1822 return Array.isArray ? Array.isArray(value) : value instanceof Array;
1823 }
1824 ts.isArray = isArray;
1825 function toArray(value) {
1826 return isArray(value) ? value : [value];

Callers 9

getIteratorFunction · 0.70
flattenFunction · 0.70
flatMapFunction · 0.70
flatMapToMutableFunction · 0.70
sameFlatMapFunction · 0.70
combineFunction · 0.70
getElementIteratorFunction · 0.70
createSetFunction · 0.70
toArrayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…