Skip to content

Instantly share code, notes, and snippets.

View cprass's full-sized avatar
🌱

Chris cprass

🌱
View GitHub Profile
var currencyValidator = {
format: function (number) {
return (Math.trunc(number * 100) / 100).toFixed(2)
},
parse: function (newString, oldNumber) {
var CleanParse = function (value) {
return { value: value }
}
var CurrencyWarning = function (warning, value) {
return {