diff options
author | Brendan Ashworth <brendan.ashworth@me.com> | 2015-06-15 22:01:33 -0700 |
---|---|---|
committer | Brendan Ashworth <brendan.ashworth@me.com> | 2015-06-16 16:08:15 -0700 |
commit | 626432d843aaf3abc60b2db2b265b95023fd5938 (patch) | |
tree | 6a1ab94fde425dc178fb3c392c7ab457e3308e6a | |
parent | d5637e67c9d01763c2cb4c202413b4d5890e0486 (diff) | |
download | nodejs-626432d843aaf3abc60b2db2b265b95023fd5938.tar.gz nodejs-626432d843aaf3abc60b2db2b265b95023fd5938.tar.bz2 nodejs-626432d843aaf3abc60b2db2b265b95023fd5938.zip |
util: dont repeat isBuffer
PR-URL: https://github.com/nodejs/io.js/pull/1988
Reviewed-By: Roman Reiss <me@silverwind.io>
-rw-r--r-- | lib/util.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/util.js b/lib/util.js index afddf439c..50f1e1b53 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); |