You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
function helperCreateToNumber (handle) {
|
|
return function (str) {
|
|
if (str) {
|
|
var num = handle(str && str.replace ? str.replace(/,/g, '') : str)
|
|
if (!isNaN(num)) {
|
|
return num
|
|
}
|
|
}
|
|
return 0
|
|
}
|
|
}
|
|
|
|
module.exports = helperCreateToNumber
|
|
|