Get/set a property of an object using dot notation
source object to search
property name (Dot notation & indexing allowed)
Set object property to value, omit to fetch value instead
property value
// Get a valueconst name = dotNotation<string>(person, 'firstName');const familyCarMake = dotNotation(family, 'cars[0].make');// Set a valuedotNotation(family, 'cars[0].make', 'toyota'); Copy
// Get a valueconst name = dotNotation<string>(person, 'firstName');const familyCarMake = dotNotation(family, 'cars[0].make');// Set a valuedotNotation(family, 'cars[0].make', 'toyota');
Get/set a property of an object using dot notation