exists()

Test if a function exists.

Signature

exists(): Boolean

Description

The exists() method tests if the function instance exists.

Parameters

None

Return value

Type Description

Boolean

true = function exists
false = function doesn’t exist.

Examples

Function.byName("double").exists()
true

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!