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