summaryrefslogtreecommitdiff
path: root/lib/util.js
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2013-12-20 13:44:56 -0800
committerTrevor Norris <trev.norris@gmail.com>2013-12-20 13:44:56 -0800
commit87cde4428036b7ddd1c51f2c00414c02bb46b8ee (patch)
treebec71acf82f3a81de544d80cae89b535f2d1af0b /lib/util.js
parent7c3643b76788b15a5712a316831a35f1ab9b7f91 (diff)
downloadnode-new-87cde4428036b7ddd1c51f2c00414c02bb46b8ee.tar.gz
Revert "util: more strict check for bool/number/string"
This reverts commit 95ee84fabe0b028ef964cc1032cd56a6cf89cb0e.
Diffstat (limited to 'lib/util.js')
-rw-r--r--lib/util.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/util.js b/lib/util.js
index fb64a44c2e..a03e87449c 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -451,7 +451,7 @@ function isArray(ar) {
exports.isArray = isArray;
function isBoolean(arg) {
- return typeof arg === 'boolean' || objectToString(arg) === '[object Boolean]';
+ return typeof arg === 'boolean';
}
exports.isBoolean = isBoolean;
@@ -466,12 +466,12 @@ function isNullOrUndefined(arg) {
exports.isNullOrUndefined = isNullOrUndefined;
function isNumber(arg) {
- return typeof arg === 'number' || objectToString(arg) === '[object Number]';
+ return typeof arg === 'number';
}
exports.isNumber = isNumber;
function isString(arg) {
- return typeof arg === 'string' || objectToString(arg) === '[object String]';
+ return typeof arg === 'string';
}
exports.isString = isString;