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

8 lines
178 B
JavaScript

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