UNPKG

@rashedmakkouk/dev-utils

Version:
10 lines (9 loc) 292 B
/** Typings */ import { ToNumericOptions } from '../types'; /** * Converts value to and validates as 'number'. * * @returns Formatted number. */ declare function toNumeric(value: number | string | null, { decimal, math, precision, }?: ToNumericOptions): number; export default toNumeric;