ditto / live.ditto / DittoMutableDocumentPath / pop

pop

fun pop(): Any?

Pop a value off the end of an array at the document's key defined by the preceding subscripting. This will only succeed if the value at the subscripting-defined key is an array.

Exceptions

DittoError - Thrown if trying to update the document at an invalid key.

Return
the value popped off from the end of the array.