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