src/model/fragment.js
// boundaries, optionally mapping a function over them.
boundaries, optionally mapping a function over them.
boundaries optionally mapping a function over them .
toArray(from = 0, to = this.size, f) {
    let result = []
    for (let iter = this.iter(from, to), n; n = iter.next().value;) result.push(f ? f(n) : n)
    return result
  }
toArray ( from = 0 , to = this . size , f ) { let result = [ ] for ( let iter = this . iter ( from , to ) , n ; n = iter . next ( ) . value ; ) result . push ( f ? f ( n ) : n ) return result }
boundaries, optionally mapping a function over them.
boundaries optionally mapping a function over them .