@silen/is-uint32-array
v1.0.3
Published
Check if the parameter is uint32array
Downloads
4
Maintainers
Readme
is-uint32-array
Determine if a value is Uint32Array
install
npm i @silen/is-uint32-array
api
declare function isUint32Array(val: any): boolean;
usage
const { isUint32Array } = require('@silen/is-uint32-array');
// or
import { isUint32Array } from '@silen/is-uint32-array';
console.log(isUint32Array(new Buffer(4)));
console.log(isUint32Array(Buffer.alloc(4)));
console.log(isUint32Array(undefined));
console.log(isUint32Array(null));
console.log(isUint32Array(''));
console.log(isUint32Array(true));
console.log(isUint32Array(0));
console.log(isUint32Array(1));
console.log(isUint32Array(1.0));
console.log(isUint32Array('string'));
console.log(isUint32Array({}));
console.log(isUint32Array(function foo() {}));
console.log(isUint32Array(Symbol()));
console.log(isUint32Array(new Set));
console.log(isUint32Array(new Map));
console.log(isUint32Array(new WeakMap));
console.log(isUint32Array(new WeakSet));
// or
console.log(window.Type.isFloat64Array(new WeakSet));
This is a demo for testing the usage of isUint32Array
from @silen/is-uint32-array
module. You can try the others and do likewise.
others
- type
- isArray
- isUndefined
- isNull
- isBoolean
- isBuffer
- isArrayBuffer
- isFormData
- isArrayBufferView
- isString
- isNumber
- isObject
- isPlainObject
- isDate
- isArguments
- isFile
- isBlob
- isFunction
- isSymbol
- isRegExp
- isInt8Array
- isUint8Array
- isUint8ClampedArray
- isInt16Array
- isUint16Array
- isInt32Array
- isFloat32Array
- isFloat64Array
- isError
- isPromise
- isSet
- isWeakSet
- isMap
- isWeakMap
- isStream
- isURLSearchParams