babel-plugin-loop-optimizer icon indicating copy to clipboard operation
babel-plugin-loop-optimizer copied to clipboard

Optimizes statements such as `forEach` and `map` to for loops.

Results 9 babel-plugin-loop-optimizer issues
Sort by recently updated
recently updated
newest added

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19. Release notes Sourced from lodash's releases. 4.17.16 Commits d7fbc52 Bump to v4.17.19 2e1c0f2 Add npm-package 1b6c282 Bump to v4.17.18 a370ac8 Bump to v4.17.17 1144918...

dependencies

Hello! This isn't so much an issue, as it is an alternate approach to loop optimization. I've forked this project over [here](https://github.com/Smorgasbordq/babel-plugin-loop-optimizer). Among the changes are reimplementing all functions to...

I used the [benchmark.js](https://github.com/bestiejs/benchmark.js/) to create the tests, the diffence is the number of items in the array, in small arrays with hundred items the puglin doesn't optimize the code....

Behavior before this commit: iteration will stop on any undefined value Expected behavior (in this commit): iteration will continue on any undefined value Also, this PR adds more examples in...

````javascript function timesTwo(arr) { var _a = arr; var _f = n => n * 2; var _r = []; for (var _i = 0; _i < _a.length; _i++) _r.push(_f(_a[_i],...

So this is a bit of an exotic use-case, but it's valid JS: ```js /** * Returns the first key in `keyList` that matches a key * in `obj`, case...

This library really makes big loops much faster, is it possible to add more operations to it, something like filter ?

I got error on `Immutable.Map.merge` call.

Not a real issue, just a benchmark of the example function for reference (Tested on an array with 1e6 elements) Unoptimized: 144ms Optimized: 21ms