Skip to content

Commit

Permalink
chore: Improve some functions (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Runrioter authored and dead-horse committed Mar 26, 2018
1 parent 4f80381 commit 32aab2b
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions index.js
Expand Up @@ -30,13 +30,9 @@ exports.duplexStream = isStearm.isDuplex;
* Extend method
*/

exports.finite = function (obj) {
return Number.isFinite(obj);
};
exports.finite = Number.isFinite;

exports.NaN = function (obj) {
return Number.isNaN(obj);
};
exports.NaN = Number.isNaN

exports.generator = function (obj) {
return obj
Expand Down Expand Up @@ -108,9 +104,7 @@ exports.error = function isError(obj) {
return obj instanceof Error;
};

exports.array = function isArray(obj) {
return Array.isArray(obj);
};
exports.array = Array.isArray;

/**
* transform isNull type to null
Expand Down

0 comments on commit 32aab2b

Please sign in to comment.