projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Version 1
[yaffs-website]
/
node_modules
/
core-js
/
library
/
modules
/
_a-number-value.js
diff --git a/node_modules/core-js/library/modules/_a-number-value.js
b/node_modules/core-js/library/modules/_a-number-value.js
new file mode 100644
(file)
index 0000000..
7bcbd7b
--- /dev/null
+++ b/
node_modules/core-js/library/modules/_a-number-value.js
@@ -0,0
+1,5
@@
+var cof = require('./_cof');
+module.exports = function(it, msg){
+ if(typeof it != 'number' && cof(it) != 'Number')throw TypeError(msg);
+ return +it;
+};
\ No newline at end of file