nl_tokens: Toggle boolean properties or properties that have a values array in its definition .
pl_tokens: function ( property ) { var def = this . _definition [ property ] ; if ( def . type === 'boolean' ) { // if it's a bool, just flip it this [ property ] = ! this [ property ] ; } else if ( def && def . <mask> ) { // If it's a property with an array of values // skip to the next one looping back if at end. this [ property ] = arrayNext ( def . values , this [ property ] ) ; } else { throw new TypeError ( 'Can only toggle properties that are type `boolean` or have `values` array.' ) ; } return this ; }