isEmpty()

Test if the array is empty.

Signature

isEmpty(): Boolean

Description

The isEmpty() method tests if the array is empty.

Parameters

None

Return value

Type Description

Boolean

Empty state of the array:
true = The array is empty.
false = The array isn’t empty.

Examples

let iter = []
iter.isEmpty()
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!