source: imaps-frontend/node_modules/lodash-es/isArrayBuffer.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 730 bytes
Line 
1import baseIsArrayBuffer from './_baseIsArrayBuffer.js';
2import baseUnary from './_baseUnary.js';
3import nodeUtil from './_nodeUtil.js';
4
5/* Node.js helper references. */
6var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer;
7
8/**
9 * Checks if `value` is classified as an `ArrayBuffer` object.
10 *
11 * @static
12 * @memberOf _
13 * @since 4.3.0
14 * @category Lang
15 * @param {*} value The value to check.
16 * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
17 * @example
18 *
19 * _.isArrayBuffer(new ArrayBuffer(2));
20 * // => true
21 *
22 * _.isArrayBuffer(new Array(2));
23 * // => false
24 */
25var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
26
27export default isArrayBuffer;
Note: See TracBrowser for help on using the repository browser.