function checkDuration(val, name) {
  if (typeof val !== "number") {
    warn(
      `<transition> explicit ${name} duration is not a valid number - ` +
        `got ${JSON.stringify(val)}.`
    );
  } else if (isNaN(val)) {
    warn(
      `<transition> explicit ${name} duration is NaN - ` +
        "the duration expression might be incorrect."
    );
  }
}
function checkDuration(val, name) {
  if (typeof val !== "number") {
    warn(
      `<transition> explicit ${name} duration is not a valid number - ` +
        `got ${JSON.stringify(val)}.`
    );
  } else if (isNaN(val)) {
    warn(
      `<transition> explicit ${name} duration is NaN - ` +
        "the duration expression might be incorrect."
    );
  }
}
function checkDuration ( val , name ) { if ( typeof val !== "number" ) { warn ( ` ${ name } ` + ` ${ JSON . stringify ( val ) } ` ) ; } else if ( isNaN ( val ) ) { warn ( ` ${ name } ` + "the duration expression might be incorrect." ) ; } }
only used in dev mode
only used in dev mode
Check if the duration expression is valid