nl_tokens: Sets the specified field denoted by the specified field path on the provided object to the provided value .
pl_tokens: function setFieldValue ( object , fieldPath , value ) { let parts = fieldPath . split ( "." ) let done = [ ] let currentObject = object while ( parts . length ) { let field = parts . shift ( ) if ( ! parts . length ) { if ( currentObject . hasOwnProperty ( <mask> ) ) { throw new Error ( ` ${ fieldPath } ` ) } currentObject [ field ] = value break } if ( ! currentObject . hasOwnProperty ( field ) ) { currentObject [ field ] = { } } if ( ! ( currentObject [ field ] instanceof Object ) ) { throw new Error ( ` ${ fieldPath } ` + ` ${ done . join ( "." ) } ` ) } currentObject = currentObject [ field ] done . push ( field ) } }