Skip to content

Commit

Permalink
Fix #73 - cursor predicates
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomguithereal committed Feb 2, 2015
1 parent 7816f61 commit bdc54e5
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,14 @@ twoCursor.rightmost().get();
>>> 'four'
```

*Check information about the cursor's location in the tree*

```js
cursor.isRoot();
cursor.isBranch();
cursor.isLeaf();
```

#### Options

You can pass those options at instantiation.
Expand Down
Loading

0 comments on commit bdc54e5

Please sign in to comment.