varops
Object for parsing javascript operators from variables
Install
$ yarn add varops$ npm install varops
Usage (ES6 imports)
;const plus = '+';const maths = varopsplus1 10;console; // 11
Support for these operators;
+
-
*
/
**
%
License
MIT © Benjamin Hollway