@alu0101243498/constant-folding
v1.1.2
Published
Constant Folding javascript code
Downloads
7
Maintainers
Readme
constant-folding
Installation
npm install @alu0101243498/constant-folding
Usage as executable:
npx cf inputFile.js outputFile.js
Usage from code:
const constantFolding = require('constant-folding');
//call the function
The documentation of the function.
Examples
Input
["a", "b", "c"].join();
[1, 2, 3].length;
[1, 2, 3][2-1];
a = 2 * 6 + 3
Output
"a,b,c";
3;
2;
a = 15;
Author
alu0101243498