Created
February 21, 2018 18:09
-
-
Save pier-oliviert/05c545dce153ee20f588ca8be683b56c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| this.nodes = this.walkers.map(walker => { | |
| walker.advance() | |
| let node = walker.currentNode | |
| const positions = this.walkers.map(walker => walker.positionFor(node)) | |
| if (!node || Math.max.apply(this, positions) > this.index) { | |
| node = walker.passthrough() | |
| } | |
| return node | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment