MCPcopy Create free account
hub / github.com/UI5/webcomponents / isArrayBuffer

Function isArrayBuffer

packages/main/test/pages/diffable-html.js:1851–1855  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

1849 // ArrayBuffers from another context (i.e. an iframe) do not pass the `instanceof` check
1850 // but they should be treated as valid. See: https://github.com/feross/buffer/issues/166
1851 function isArrayBuffer (obj) {
1852 return obj instanceof ArrayBuffer ||
1853 (obj != null && obj.constructor != null && obj.constructor.name === 'ArrayBuffer' &&
1854 typeof obj.byteLength === 'number')
1855 }
1856
1857 function numberIsNaN (obj) {
1858 return obj !== obj // eslint-disable-line no-self-compare

Callers 2

fromFunction · 0.85
byteLengthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…