nl_tokens: assigns values to an object creating keys in keyPath if they don t exist yet .
pl_tokens: function assign ( obj , keyPath , value ) { const lastKeyIndex = keyPath . <mask> - 1 for ( let i = 0 ; i < lastKeyIndex ; ++ i ) { const key = keyPath [ i ] if ( ! ( key in obj ) ) obj [ key ] = { } obj = obj [ key ] } obj [ keyPath [ lastKeyIndex ] ] = value }