Skip to content

Commit

Permalink
Use KenanY/is-number
Browse files Browse the repository at this point in the history
Closes #1
  • Loading branch information
kenany committed Mar 25, 2014
1 parent 16097ff commit 7ba6c38
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 3 additions & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "Is nan component",
"version": "1.0.0",
"keywords": [],
"dependencies": {},
"dependencies": {
"KenanY/is-number": "*"
},
"development": {},
"scripts": [
"index.js"
Expand Down
8 changes: 1 addition & 7 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
var numberClass = '[object Number]';
var objectProto = Object.prototype;
var toString = objectProto.toString;

function isNumber(value) {
return typeof value == 'number' || toString.call(value) == numberClass;
}
var isNumber = require('is-number');

/**
* Checks if `value` is `NaN`.
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"components": "component install --dev",
"clean": "rm -fr build components"
},
"dependencies": {
"is-number": "KenanY/is-number"
},
"devDependencies": {
"lodash.map": "^2.4.1",
"tape": "^2.12.0"
Expand All @@ -41,4 +44,4 @@
"ipad/6"
]
}
}
}

0 comments on commit 7ba6c38

Please sign in to comment.