MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / isArrayish

Function isArrayish

MathBox/mathbox-core.js:1940–1944  ·  view source on GitHub ↗
(subject)

Source from the content-addressed store, hash-verified

1938}
1939
1940function isArrayish (subject) {
1941 return isArray(subject) || Buffer.isBuffer(subject) ||
1942 subject && typeof subject === 'object' &&
1943 typeof subject.length === 'number'
1944}
1945
1946function toHex (n) {
1947 if (n < 16) return '0' + n.toString(16)

Callers 1

BufferFunction · 0.70

Calls 1

isArrayFunction · 0.70

Tested by

no test coverage detected