We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6380abd commit dc761d4Copy full SHA for dc761d4
1 file changed
OpenFlowNodeRED/src/index.ts
@@ -35,8 +35,8 @@ process.on('unhandledRejection', up => {
35
// function isNumeric(n) {
36
// return !isNaN(parseFloat(n)) && isFinite(n);
37
// }
38
-function isNumeric(val) {
39
- return Number(parseFloat(val)) === val;
+function isNumeric(num) {
+ return !isNaN(num)
40
}
41
(async function (): Promise<void> {
42
try {
0 commit comments