const number = "123456"
const isNum = /^\d+$/.test(number);
const isNum = /\d/g.test(number);
const isNum = !isNaN(number) && !isNaN(parseFloat(number));
--enable-precise-memory-info
flag.
Test case name | Result |
---|---|
1 | |
2 | |
3 |
This benchmark does not have any results yet. Be the first one to run it!