The aggregate function currently uses eval (which Rollup wrightly complains about). It is not possible to use new Function instead because Function does not use the module's scope as a closure so does not have access to summary functions like min, mean, sum etc
Use of eval and new Function() can be avoided by moving to using lambda expressions instead of strings for functions like extend, filter and aggregate.
The aggregate function currently uses
eval
(which Rollup wrightly complains about). It is not possible to usenew Function
instead becauseFunction
does not use the module's scope as a closure so does not have access to summary functions likemin
,mean
,sum
etcUse of
eval
andnew Function()
can be avoided by moving to using lambda expressions instead of strings for functions likeextend
,filter
andaggregate
.