open-consul/ui-v2/app/helpers/right-trim.js
2018-06-12 11:24:35 +01:00

8 lines
205 B
JavaScript

import { helper } from '@ember/component/helper';
import rightTrim from 'consul-ui/utils/right-trim';
export default helper(function([str = '', search = ''], hash) {
return rightTrim(str, search);
});