babel-plugin-starts-with-ends-with
Replaces
startsWith
andendsWith
with es5 compatible code.
Example
In
'foobar';'foobar';
Out
'foobar'===0;'foobar'==='bar';
Installation
Using npm:
npm install --save-dev babel-plugin-starts-with-ends-with
or using yarn:
yarn add babel-plugin-starts-with-ends-with --dev
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
$ babel --plugins starts-with-ends-with script.js
Via Node API
;