Accesses and Updates the object's properties via string.
npm install lzo-prop-string OR yarn add lzo-prop-string
import { PropString } from 'lzo-prop-string';
PropString.execute('test.name', { test: { name: 'Lack-Zillions-Over' } }); // Lack-Zillions-Over
PropString.execute('test.name', { test: { name: 'John Doe' } }, 'GuilhermeSanto001'); // GuilhermeSantos001
PropString.execute<T, R>(text: string, object: T): R
Get value of property in object by string
PropString.execute<T, R>(text: string, object: T, update: R): R
Update value of property in object by string
Support this project by becoming a sponsor.
Licensed under the MIT. See the LICENSE file for details.