Created
August 30, 2020 11:29
-
-
Save hw0k/361fdb584b6b1fbb8961459549b5a54d to your computer and use it in GitHub Desktop.
TSB 2
This file contains 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 characters
function checkNumberIsZero(par: number): boolean { | |
return par === 0; | |
} | |
checkNumberIsZero(0); // true | |
checkNumberIsZero([]); // Error! | |
checkNumberIsZero(""); // Error! | |
checkNumberIsZero(false); // Error! | |
checkNumberIsZero(this); // Error! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment