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.

Return

the value popped off from the end of the array.

Throws

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