How to get last x items from an array?

Thanks, This works but Couldn’t find this info anywhere. Btw, A blog post from couchbase says both parameter required - https://blog.couchbase.com/working-json-arrays-n1ql/