DefinitelyTyped/types/fast-isnumeric/fast-isnumeric-tests.ts
Piotr Błażejewicz (Peter Blazejewicz) 51269623f0
feat(fast-isnumeric): new type definition v1.1 (#43659)
Small helper function From Plotly project:
- definition file
- tests

https://github.com/plotly/fast-isnumeric#api

Thanks!
2020-04-07 08:17:55 -07:00

7 lines
216 B
TypeScript

import isNumeric = require('fast-isnumeric');
// tslint:disable-next-line: no-construct
isNumeric(new String('1')); // $ExpectType boolean
isNumeric(1); // $ExpectType boolean
isNumeric('1'); // $ExpectType boolean