Closed TBSten closed 2 years ago
Was self resolved.
I was always looking at require("jse-eval").jsep
instead of require("jse-eval")
.
I read the README and realized that I should use addEvaluator
.
Sorry for the confusion @TBSten , but glad you figured it out! I'll try to update the readme with some better examples for extending functionality and your use case would be a great example 🙂
:tada: This issue has been resolved in version 1.3.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Thank you for your response!
I want to add custom operator with logic .
For example ,
In this example, I want it to return 1024, which is 2 to the 10th power, like the "^" operator in Excel.
I tried creating an original plugin like below .
However, I don't know where to write the essential logic of "finding exponentiation".
Please tell me how to add a custom operator with logic