docs/api/javascript/transformations/skip.md at master · rethinkdb/docs

Latest commit

layout api-command
language JavaScript
permalink api/javascript/skip/
command skip
io

sequence

stream

array

array

related_commands
limit slice nth orderBy

limit/

slice/

nth/

order_by/

Command syntax

{% apibody %} sequence.skip(n) → stream array.skip(n) → array {% endapibody %}

Description

Skip a number of elements from the head of the sequence.

Example: Here in conjunction with orderBy we choose to ignore the most successful heroes.

r.table('marvel').orderBy('successMetric').skip(10).run(conn, callback)