Cleaning, and build tools

This commit is contained in:
Thomas FORGIONE
2015-06-30 15:13:49 +02:00
parent 5259a8feea
commit 09b8dad62b
12 changed files with 831 additions and 28 deletions

6
lib/filterInt.js Normal file
View File

@@ -0,0 +1,6 @@
// Strict parseInt
module.exports.filterInt = function(value) {
if(/^(\-|\+)?([0-9]+|Infinity)$/.test(value))
return Number(value);
return NaN;
}