What is the simplest writing to test if this a JavaScript function named openContactSimplifiedAside() exists or not with Jasmine?
Asked
Active
Viewed 497 times
0
Allan Pereira
- 2,561
- 4
- 19
- 27
Mouad Ennaciri
- 1,027
- 2
- 11
- 27
-
`typeof openContactSimplifiedAside === 'function'` – dfsq May 02 '17 at 08:56
-
Possible duplicate of [Javascript check if function exists](http://stackoverflow.com/questions/1042138/javascript-check-if-function-exists) – Yashar Aliabbasi May 02 '17 at 08:57