mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Small helper function From Plotly project: - definition file - tests https://github.com/plotly/fast-isnumeric#api Thanks!
7 lines
216 B
TypeScript
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
|