$ npm install strip-outer
Strip a substring from the start/end of a string
$ npm install strip-outer
import stripOuter from 'strip-outer';
stripOuter('foobarfoo', 'foo');
//=> 'bar'
stripOuter('unicorncake', 'unicorn');
//=> 'cake'
© 2010 - cnpmjs.org x YWFE | Home | YWFE