from within a function defined within mathjs? Eg:
math.eval('a("hello")', { a: (b) => { return b + this.c; }, c: 'world' });
Just... Assign the scope to a constant, name it, and you'll be able to access it from functions
Обсуждают сегодня