direction

Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.

MDN Reference