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

Function toArray

test/fixtures/snapshot/typescript.js:1825–1827  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1823 }
1824 ts.isArray = isArray;
1825 function toArray(value) {
1826 return isArray(value) ? value : [value];
1827 }
1828 ts.toArray = toArray;
1829 /**
1830 * Tests whether a value is string

Callers

nothing calls this directly

Calls 1

isArrayFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…