Package Exports
- @silen/is-uint16-array
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@silen/is-uint16-array) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
is-uint16-array
Determine if a value is Uint16Array
install
npm i @silen/is-uint16-arrayapi
declare function isUint16Array(val: any): boolean;
usage
const { isUint16Array } = require('@silen/is-uint16-array');
// or
import { isUint16Array } from '@silen/is-uint16-array';
console.log(isUint16Array(new Buffer(4)));
console.log(isUint16Array(Buffer.alloc(4)));
console.log(isUint16Array(undefined));
console.log(isUint16Array(null));
console.log(isUint16Array(''));
console.log(isUint16Array(true));
console.log(isUint16Array(0));
console.log(isUint16Array(1));
console.log(isUint16Array(1.0));
console.log(isUint16Array('string'));
console.log(isUint16Array({}));
console.log(isUint16Array(function foo() {}));
console.log(isUint16Array(Symbol()));
console.log(isUint16Array(new Set));
console.log(isUint16Array(new Map));
console.log(isUint16Array(new WeakMap));
console.log(isUint16Array(new WeakSet));
// or
console.log(window.Type.isUint16Array(new WeakSet));This is a demo for testing the usage of isUint16Array from @silen/is-uint16-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
- isInt32Array
- isUint32Array
- isFloat32Array
- isFloat64Array
- isError
- isPromise
- isSet
- isWeakSet
- isMap
- isWeakMap
- isStream
- isURLSearchParams