open-consul/ui-v2/app/helpers/split.js

8 lines
174 B
JavaScript

import { helper } from '@ember/component/helper';
export function split([str = '', separator = ','], hash) {
return str.split(separator);
}
export default helper(split);