From 626432d843aaf3abc60b2db2b265b95023fd5938 Mon Sep 17 00:00:00 2001 From: Brendan Ashworth Date: Mon, 15 Jun 2015 22:01:33 -0700 Subject: [PATCH] util: dont repeat isBuffer PR-URL: https://github.com/nodejs/io.js/pull/1988 Reviewed-By: Roman Reiss --- lib/util.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/util.js b/lib/util.js index afddf439cf8e72..50f1e1b53138b3 100644 --- a/lib/util.js +++ b/lib/util.js @@ -640,10 +640,7 @@ function isPrimitive(arg) { } exports.isPrimitive = isPrimitive; -function isBuffer(arg) { - return arg instanceof Buffer; -} -exports.isBuffer = isBuffer; +exports.isBuffer = Buffer.isBuffer; function objectToString(o) { return Object.prototype.toString.call(o);