Skip to content

Commit 626432d

Browse files
util: dont repeat isBuffer
PR-URL: #1988 Reviewed-By: Roman Reiss <[email protected]>
1 parent d5637e6 commit 626432d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/util.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -640,10 +640,7 @@ function isPrimitive(arg) {
640640
}
641641
exports.isPrimitive = isPrimitive;
642642

643-
function isBuffer(arg) {
644-
return arg instanceof Buffer;
645-
}
646-
exports.isBuffer = isBuffer;
643+
exports.isBuffer = Buffer.isBuffer;
647644

648645
function objectToString(o) {
649646
return Object.prototype.toString.call(o);

0 commit comments

Comments
 (0)