main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
502 bytes
|
Rev | Line | |
---|
[d565449] | 1 | import baseGetTag from './_baseGetTag.js';
|
---|
| 2 | import isObjectLike from './isObjectLike.js';
|
---|
| 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 | export default baseIsArrayBuffer;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.