varops
v1.0.1
Published
Object for parsing javascript operators from variables
Downloads
27
Maintainers
Readme
varops
Object for parsing javascript operators from variables
Install
$ yarn add varops
$ npm install varops
Usage (ES6 imports)
import varops from 'varops';
const plus = '+';
const maths = varops[plus](1, 10);
console.log(maths); // 11
Support for these operators;
+
-
*
/
**
%
License
MIT © Benjamin Hollway