util.types.isUint8Array(value)
如果值为内置的 <Uint8Array> 实例,则返回 true
。
¥Returns true
if the value is a built-in <Uint8Array> instance.
util.types.isUint8Array(new ArrayBuffer()); // Returns false
util.types.isUint8Array(new Uint8Array()); // Returns true
util.types.isUint8Array(new Float64Array()); // Returns false