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
/
underscore.string
/
helper
/
toPositive.js
diff --git a/node_modules/underscore.string/helper/toPositive.js
b/node_modules/underscore.string/helper/toPositive.js
new file mode 100644
(file)
index 0000000..
6dda0a3
--- /dev/null
+++ b/
node_modules/underscore.string/helper/toPositive.js
@@ -0,0
+1,3
@@
+module.exports = function toPositive(number) {
+ return number < 0 ? 0 : (+number || 0);
+};