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

13 lines
253 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import { helper } from '@ember/component/helper';
export function split([str = '', separator = ','], hash) {
return str.split(separator);
}
export default helper(split);