npm package: @silen/is-uint16-array
Description: Check if the parameter is uint16array
Author: sunsilent
Latest version: 1.0.3

# is-uint16-array

Determine if a value is Uint16Array

## install

```
npm i @silen/is-uint16-array
```

## api

- `declare function isUint16Array(val: any): boolean;`

## usage

```js
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](https://www.npmjs.com/@silen/type)
- [isArray](https://www.npmjs.com/@silen/is-array)
- [isUndefined](https://www.npmjs.com/@silen/is-undefined)
- [isNull](https://www.npmjs.com/@silen/is-null)
- [isBoolean](https://www.npmjs.com/@silen/is-boolean)
- [isBuffer](https://www.npmjs.com/@silen/is-buffer)
- [isArrayBuffer](https://www.npmjs.com/@silen/is-array-buffer)
- [isFormData](https://www.npmjs.com/@silen/is-form-data)
- [isArrayBufferView](https://www.npmjs.com/@silen/is-array-buffer-view)
- [isString](https://www.npmjs.com/@silen/is-string)
- [isNumber](https://www.npmjs.com/@silen/is-number)
- [isObject](https://www.npmjs.com/@silen/is-object)
- [isPlainObject](https://www.npmjs.com/@silen/is-plain-object)
- [isDate](https://www.npmjs.com/@silen/is-date)
- [isArguments](https://www.npmjs.com/@silen/is-arguments)
- [isFile](https://www.npmjs.com/@silen/is-file)
- [isBlob](https://www.npmjs.com/@silen/is-blob)
- [isFunction](https://www.npmjs.com/@silen/is-function)
- [isSymbol](https://www.npmjs.com/@silen/is-symbol)
- [isRegExp](https://www.npmjs.com/@silen/is-reg-exp)
- [isInt8Array](https://www.npmjs.com/@silen/is-int8-array)
- [isUint8Array](https://www.npmjs.com/@silen/is-uint8-array)
- [isUint8ClampedArray](https://www.npmjs.com/@silen/is-uint8-clamped-array)
- [isInt16Array](https://www.npmjs.com/@silen/is-int16-array)
- [isInt32Array](https://www.npmjs.com/@silen/is-int32-array)
- [isUint32Array](https://www.npmjs.com/@silen/is-uint32-array)
- [isFloat32Array](https://www.npmjs.com/@silen/is-float32-array)
- [isFloat64Array](https://www.npmjs.com/@silen/is-float64-array)
- [isError](https://www.npmjs.com/@silen/is-error)
- [isPromise](https://www.npmjs.com/@silen/is-promise)
- [isSet](https://www.npmjs.com/@silen/is-set)
- [isWeakSet](https://www.npmjs.com/@silen/is-weak-set)
- [isMap](https://www.npmjs.com/@silen/is-map)
- [isWeakMap](https://www.npmjs.com/@silen/is-weak-map)
- [isStream](https://www.npmjs.com/@silen/is-stream)
- [isURLSearchParams](https://www.npmjs.com/@silen/is-url-search-params)