| 1 |
var baseGetTag = require('./_baseGetTag'), |
| 2 |
isObjectLike = require('./isObjectLike'); |
| 3 |
|
| 4 |
var 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 |
*/ |
| 13 |
function baseIsArrayBuffer(value) { |
| 14 |
return isObjectLike(value) && baseGetTag(value) == arrayBufferTag; |
| 15 |
} |
| 16 |
|
| 17 |
module.exports = baseIsArrayBuffer; |