UNPKG

@silen/is-int16-array

Version:

Check if the parameter is int16array

25 lines (19 loc) 715 B
/*! * @silen/is-int16-array v1.0.3 * (c) 2020 * author: sunsilent * email: sunsilently@outlook.com * @license MIT */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Type = {})); }(this, (function (exports) { 'use strict'; var toStr = Object.prototype.toString; function isInt16Array(val) { return toStr.call(val) === '[object Int16Array]'; } exports.isInt16Array = isInt16Array; Object.defineProperty(exports, '__esModule', { value: true }); })));