MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / isSafeNumber

Function isSafeNumber

core/src/utils/helpers.ts:395–397  ·  view source on GitHub ↗
(input: unknown)

Source from the content-addressed store, hash-verified

393 * Checks input for usable number. Not NaN and not Infinite.
394 */
395export const isSafeNumber = (input: unknown): input is number => {
396 return typeof input === 'number' && !isNaN(input) && isFinite(input);
397};

Callers 6

minChangedMethod · 0.90
maxChangedMethod · 0.90
stepChangedMethod · 0.90
componentWillLoadMethod · 0.90
getDecimalPlacesFunction · 0.90
roundToMaxDecimalPlacesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected