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