function checkFloat(node) {
  const stringValue = $(node).text().trim();
  if (stringValue === '') {
    $(node).removeClass('invalid');
  } else if (FLOAT_PATTERN.test(stringValue)) {
    $(node).removeClass('invalid');
  } else {
    $(node).addClass('invalid');
  }
}
/**
 * Determines if the text entered in a float input is valid by detecting any
 * characters besides 0-9, a single period to signify a decimal, and a
 * leading hyphen. Also supports scientific notation with either 'e' or 'E'.
 * @param {!Node} node
 */
Determines if the text entered in a float input is valid by detecting any
characters besides 0-9, a single period to signify a decimal, and a
leading hyphen. Also supports scientific notation with either 'e' or 'E'.
@param {!Node} node
Determines if the text entered in a float input is valid by detecting any characters besides 0 - 9 a single period to signify a decimal and a leading hyphen . Also supports scientific notation with either ' e ' or ' E ' . @param { !Node } node
function checkFloat(node) {
  const stringValue = $(node).text().trim();
  if (stringValue === '') {
    $(node).removeClass('invalid');
  } else if (FLOAT_PATTERN.test(stringValue)) {
    $(node).removeClass('invalid');
  } else {
    $(node).addClass('invalid');
  }
}
function checkFloat ( node ) { const stringValue = $ ( node ) . text ( ) . trim ( ) ; if ( stringValue === '' ) { $ ( node ) . removeClass ( 'invalid' ) ; } else if ( FLOAT_PATTERN . test ( stringValue ) ) { $ ( node ) . removeClass ( 'invalid' ) ; } else { $ ( node ) . addClass ( 'invalid' ) ; } }
Determines if the text entered in a float input is valid by detecting any
 characters besides 0-9, a single period to signify a decimal, and a
 leading hyphen.
Determines if the text entered in a float input is valid by detecting any characters besides 0 - 9 a single period to signify a decimal and a leading hyphen .