babel-plugin-array-includes
babel-plugin-array-includes copied to clipboard
Replaces `arr.includes(val)' with `arr.indexOf(val) >= 0`.
Results
3
babel-plugin-array-includes issues
Sort by
recently updated
recently updated
newest added
Just updates the babel related deps to 7.0.0-beta.40
This plugin would be great to use in our configs, except for the issue that it blindly translates any invocation of an includes method into an indexOf and -1 comparison...
Kind of an edge case, but if you reference the `includes` property using `[]` instead of `.`, the plugin will not transform the code. Exampe: ``` javascript x.includes(123); x['includes'](123); ```...