util: removing redundant checks in is* functions
authorSakthipriyan Vairamani <thechargingvolcano@gmail.com>
Tue, 14 Jul 2015 20:26:54 +0000 (01:56 +0530)
committerSakthipriyan Vairamani <thechargingvolcano@gmail.com>
Tue, 21 Jul 2015 17:54:23 +0000 (23:24 +0530)
commit6391f4d2fd7a5779e012887158e6bc69d08966e3
tree95a7f2f1a27cb7c38402cfb6985416c99a0da760
parentb612f085ec12a1937e07867e7d23c5d58022b8ea
util: removing redundant checks in is* functions

When Object.prototype.toString is used to determine the type, we don't
have to explicitly check for other types. This patch removes the
redundant checks like that.

PR-URL: https://github.com/nodejs/io.js/pull/2179

Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
lib/util.js