Created
June 10, 2020 02:08
-
-
Save cosinekitty/ac609ce7c83fcfe6a0d50fce8f7db152 to your computer and use it in GitHub Desktop.
Revisions
-
cosinekitty created this gist
Jun 10, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ function v(x) { if (typeof x !== 'number') { console.trace(); throw `Not a numeric type: ${x}`; } if (isNaN(x)) { console.trace(); throw 'NAN result'; } return x; }