source: trip-planner-front/node_modules/lodash/_baseIsArrayBuffer.js@ bdd6491

Last change on this file since bdd6491 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 504 bytes
Line 
1var baseGetTag = require('./_baseGetTag'),
2 isObjectLike = require('./isObjectLike');
3
4var arrayBufferTag = '[object ArrayBuffer]';
5
6/**
7 * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
8 *
9 * @private
10 * @param {*} value The value to check.
11 * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
12 */
13function baseIsArrayBuffer(value) {
14 return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
15}
16
17module.exports = baseIsArrayBuffer;
Note: See TracBrowser for help on using the repository browser.