1
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
function helperCreateToNumber (handle) {
|
||||
return function (str) {
|
||||
if (str) {
|
||||
var num = handle(str)
|
||||
if (!isNaN(num)) {
|
||||
return num
|
||||
}
|
||||
}
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = helperCreateToNumber
|
||||
Reference in New Issue
Block a user