Afanasev_Stepan_PIbd-21_IP/ИП 2 лаба/node_modules/lodash/_baseIsArrayBuffer.js
[USERNAME] 0dd26716dc Lab2-5
2024-01-10 16:11:49 +04:00

18 lines
504 B
JavaScript

var baseGetTag = require('./_baseGetTag'),
isObjectLike = require('./isObjectLike');
var arrayBufferTag = '[object ArrayBuffer]';
/**
* The base implementation of `_.isArrayBuffer` without Node.js optimizations.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
*/
function baseIsArrayBuffer(value) {
return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
}
module.exports = baseIsArrayBuffer;