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

12 lines
281 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
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);
});