How to check if a JavaScript function is defined?
Answers
Answered by
0
When using scripts that are shared between different areas of a site, there may be cases where a function is called that doesn't exist. It makes sense on one page (the dependency is there) but not another. The difference is too slight to warrant forking the file into different versions.
Similar questions
Chemistry,
6 months ago
Science,
6 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago