JSPM

@silen/is-uint16-array

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 131
  • Score
    100M100P100Q89805F
  • License MIT

Check if the parameter is uint16array

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-array

api

  • 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