mirror of https://github.com/nodejs/node.git
util: dont repeat isBuffer
PR-URL: https://github.com/nodejs/io.js/pull/1988 Reviewed-By: Roman Reiss <me@silverwind.io>pull/1988/merge
parent
d5637e67c9
commit
626432d843
|
@ -640,10 +640,7 @@ function isPrimitive(arg) {
|
||||||
}
|
}
|
||||||
exports.isPrimitive = isPrimitive;
|
exports.isPrimitive = isPrimitive;
|
||||||
|
|
||||||
function isBuffer(arg) {
|
exports.isBuffer = Buffer.isBuffer;
|
||||||
return arg instanceof Buffer;
|
|
||||||
}
|
|
||||||
exports.isBuffer = isBuffer;
|
|
||||||
|
|
||||||
function objectToString(o) {
|
function objectToString(o) {
|
||||||
return Object.prototype.toString.call(o);
|
return Object.prototype.toString.call(o);
|
||||||
|
|
Loading…
Reference in New Issue