What is the simplest writing to test if this a JavaScript function named openContactSimplifiedAside()
exists or not with Jasmine?
Asked
Active
Viewed 517 times
0

Allan Pereira
- 2,572
- 4
- 21
- 28

Mouad Ennaciri
- 1,217
- 3
- 15
- 28
-
`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