We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5637e6 commit 626432dCopy full SHA for 626432d
1 file changed
lib/util.js
@@ -640,10 +640,7 @@ function isPrimitive(arg) {
640
}
641
exports.isPrimitive = isPrimitive;
642
643
-function isBuffer(arg) {
644
- return arg instanceof Buffer;
645
-}
646
-exports.isBuffer = isBuffer;
+exports.isBuffer = Buffer.isBuffer;
647
648
function objectToString(o) {
649
return Object.prototype.toString.call(o);
0 commit comments