| var isTypedArray = require('./is-typed-array') | |
| module.exports = function isNDArrayLike (obj) { | |
| return ( | |
| !!obj && | |
| typeof obj === 'object' && | |
| Array.isArray(obj.shape) && | |
| Array.isArray(obj.stride) && | |
| typeof obj.offset === 'number' && | |
| obj.shape.length === obj.stride.length && | |
| (Array.isArray(obj.data) || | |
| isTypedArray(obj.data))) | |
| } | |
Xet Storage Details
- Size:
- 365 Bytes
- Xet hash:
- 806cb77415b709c52db802fddff981867a91611747873a6da795588d3dd102e0
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.