LesterLyu / fast-formula-parser

Parse and evaluate MS Excel formula in javascript.
https://www.npmjs.com/package/fast-formula-parser
MIT License
462 stars 64 forks source link

Can all functions access the context? #18

Closed rmdort closed 4 years ago

rmdort commented 4 years ago

2 issues

  1. Functions supplied in functionsNeedContext does not work as it throws function not found error. This is because we are checking for custom functions in if (this.functions[name]) {

  2. Right now only functionsNeedContext can access context position. Is there anyway we can inject context as the last argument to all functions ? Or the first arg ? Its quite useful when executing side-effects since we know the positions of the cell.

LesterLyu commented 4 years ago
rmdort commented 4 years ago

Ignore. My bad. Functions defined in functionsNeedContext works fine