Returns a property accessor code.
propAccess('obj', 'foo'); // → obj.foopropAccess('obj', 9); // → obj[9]propAccess('obj', 'foo bar', true); // → obj?.["foo bar"]
The value from which the property is read.
The key of the property.
Optional
If true then optional chaining syntax is used.
true
Generated using TypeDoc
Returns a property accessor code.