numberEmptyState
numberEmptyState(value, format)
numberEmptyState(value, format)Arguments
Returns
Example
typescript
import { numberEmptyState } from 'check-engineering/ts-utils';
const validInput = 42;
const invalidInput = "NaN";
const fallbackFormat = "---";
const validDisplay = numberEmptyState(validInput, fallbackFormat); // => 42
const fallbackDisplay = numberEmptyState(invalidInput, fallbackFormat); // Output: "---"Usage
Notes
Last updated