Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
504 bytes
|
Rev | Line | |
---|
[6a3a178] | 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;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.