diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-03-14 17:01:52 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-03-14 17:01:52 +0800 |
| commit | 7f8f993637e698d63aeb2e08f053e0948d9f4d31 (patch) | |
| tree | 52d5e508a4ff2e4fa80dde457bc52e662a3887ab /node_modules/is-buffer/index.js | |
| parent | 7210ae26624cc6c6ad6725040e388b31991b7907 (diff) | |
fixed minifier
Diffstat (limited to 'node_modules/is-buffer/index.js')
| -rw-r--r-- | node_modules/is-buffer/index.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/node_modules/is-buffer/index.js b/node_modules/is-buffer/index.js deleted file mode 100644 index 9cce3965..00000000 --- a/node_modules/is-buffer/index.js +++ /dev/null @@ -1,21 +0,0 @@ -/*! - * Determine if an object is a Buffer - * - * @author Feross Aboukhadijeh <https://feross.org> - * @license MIT - */ - -// The _isBuffer check is for Safari 5-7 support, because it's missing -// Object.prototype.constructor. Remove this eventually -module.exports = function (obj) { - return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer) -} - -function isBuffer (obj) { - return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj) -} - -// For Node v0.10 support. Remove this eventually. -function isSlowBuffer (obj) { - return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0)) -} |
