mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Remove references to _.
This commit is contained in:
@@ -20,17 +20,16 @@ const nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
||||
* Checks if `value` is a buffer.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.3.0
|
||||
* @category Lang
|
||||
* @param {*} value The value to check.
|
||||
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
||||
* @example
|
||||
*
|
||||
* _.isBuffer(new Buffer(2));
|
||||
* isBuffer(new Buffer(2));
|
||||
* // => true
|
||||
*
|
||||
* _.isBuffer(new Uint8Array(2));
|
||||
* isBuffer(new Uint8Array(2));
|
||||
* // => false
|
||||
*/
|
||||
const isBuffer = nativeIsBuffer || stubFalse;
|
||||
|
||||
Reference in New Issue
Block a user