@silen/is-int32-array
v1.0.3
Published
Check if the parameter is int32array
Downloads
19
Maintainers
Readme
is-int32-array
Determine if a value is Int32Array
install
npm i @silen/is-int32-array
api
declare function isInt32Array(val: any): boolean;
usage
const { isInt32Array } = require('@silen/is-int32-array');
// or
import { isInt32Array } from '@silen/is-int32-array';
console.log(isInt32Array(new Buffer(4)));
console.log(isInt32Array(Buffer.alloc(4)));
console.log(isInt32Array(undefined));
console.log(isInt32Array(null));
console.log(isInt32Array(''));
console.log(isInt32Array(true));
console.log(isInt32Array(0));
console.log(isInt32Array(1));
console.log(isInt32Array(1.0));
console.log(isInt32Array('string'));
console.log(isInt32Array({}));
console.log(isInt32Array(function foo() {}));
console.log(isInt32Array(Symbol()));
console.log(isInt32Array(new Set));
console.log(isInt32Array(new Map));
console.log(isInt32Array(new WeakMap));
console.log(isInt32Array(new WeakSet));
// or
console.log(window.Type.isInt32Array(new WeakSet));
This is a demo for testing the usage of isInt32Array
from @silen/is-int32-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
- isUint32Array
- isFloat32Array
- isFloat64Array
- isError
- isPromise
- isSet
- isWeakSet
- isMap
- isWeakMap
- isStream
- isURLSearchParams