main/foreground.js
/**
 * Checks if value is a number
 */
Checks if value is a number
Checks if value is a number
function isNumber(value, allowCommas) {
  if (allowCommas) {
    value = value.replace(/,/g, '');
  }
  return !isNaN(value) && !isNaN(parseFloat(value));
}
function isNumber ( value , allowCommas ) { if ( allowCommas ) { value = value . replace ( / , / g , '' ) ; } return ! isNaN ( value ) && ! isNaN ( parseFloat ( value ) ) ; }
Checks if value is a number
Checks if value is a number