mirror of https://github.com/status-im/consul.git
8 lines
215 B
JavaScript
8 lines
215 B
JavaScript
|
import { helper } from '@ember/component/helper';
|
||
|
|
||
|
export function leftTrim([str = '', search = ''], hash) {
|
||
|
return str.indexOf(search) === 0 ? str.substr(search.length) : str;
|
||
|
}
|
||
|
|
||
|
export default helper(leftTrim);
|