UNPKG

@interaction/eagle

Version:
6 lines (5 loc) 520 B
function _isTypedArray(param) { const type = Object.prototype.toString.call(param); return type === '[object Uint8ClampedArray]' || type === '[object Int8Array]' || type === '[object Uint8Array]' || type === '[object Int16Array]' || type === '[object Uint16Array]' || type === '[object Int32Array]' || type === '[object Uint32Array]' || type === '[object Float32Array]' || type === '[object Float64Array]' || type === '[object BigInt64Array]' || type === '[object BigUint64Array]'; } module.exports = _isTypedArray;