UNPKG

@silen/is-int8-array

Version:

Check if the parameter is int8array

19 lines (14 loc) 364 B
/*! * @silen/is-int8-array v1.0.3 * (c) 2020 * author: sunsilent * email: sunsilently@outlook.com * @license MIT */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var toStr = Object.prototype.toString; function isInt8Array(val) { return toStr.call(val) === '[object Int8Array]'; } exports.isInt8Array = isInt8Array;