UNPKG

@maddimathon/utility-typescript

Version:

TypeScript utilities (types, functions, classes) to use in various projects.

22 lines (21 loc) 425 B
/** * @since 2.0.0-beta.2 * * @packageDocumentation */ /*! * @maddimathon/utility-typescript@2.0.0-beta.5 * @license MIT */ import { makeNumber } from './makeNumber.js'; /** * Makes any input a number if it can be made into a valid number (e.g., by * parsing a string). * * @category Functions – String * * @since 2.0.0-beta.2 */ export async function makeNumberAsync(input) { return makeNumber(input); }