bylexus / fparse

A JavaScript Formula Parser
http://fparser.alexi.ch/
MIT License
89 stars 15 forks source link

Added object property access to named vars #53

Closed SamStonehouse closed 10 months ago

SamStonehouse commented 10 months ago

I've added the ability to access object properties through named vars, e.g. 2 * [someVar.someProperty] as I needed a way to pass whole objects as variables into the parser.

Opening a PR in case you would like these changes too.

My auto-formatter did a number on the README file but I think it's all for the best?

bylexus commented 10 months ago

Seems a reasonable addition. I will merge it into master (whoops, should be main :-) ), and will do some checks before releasing a new npm version.

Thanks for your addition

bylexus commented 10 months ago

Merged into Release 2.1.0, and published to npm.