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