open-consul/ui/packages/consul-ui/app/helpers/left-trim.js

12 lines
280 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { helper } from '@ember/component/helper';
import leftTrim from 'consul-ui/utils/left-trim';
export default helper(function ([str = '', search = ''], hash) {
return leftTrim(str, search);
});