Created
February 12, 2020 22:38
-
-
Save virtual/007df117c5892bd6c96cb33e4382aa15 to your computer and use it in GitHub Desktop.
If Function Exists JS
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 characters
| if (typeof me.onChange === "function") { | |
| // safe to use the function | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment