nl_tokens: Returns the cursor direction to use with the native Indexed DB API .
pl_tokens: function toNativeCursorDirection ( direction , unique ) { if ( typeof direction === "string" ) { if ( CURSOR_DIRECTIONS . indexOf ( direction . toUpperCase ( ) ) === - 1 ) { throw new Error ( "When using a string as cursor direction, use NEXT " + ` ${ direction } ` ) ; } } else { <mask> = direction . value } let cursorDirection = direction . toLowerCase ( ) . substring ( 0 , 4 ) if ( unique ) { cursorDirection += "unique" } return cursorDirection }