nl_tokens: Convert the iterator values into an array
pl_tokens: function iteratorToArray ( iterator ) { const values = [ ] ; let item = iterator . next ( ) ; while ( ! item . done ) { <mask> . push ( item . value ) ; item = iterator . next ( ) ; } return values ; }