9 lines
213 B
JavaScript
9 lines
213 B
JavaScript
import { helper } from '@ember/component/helper';
|
|
|
|
export function strSplit([str, sp]) {
|
|
// String.fromCharCode(0x1d)
|
|
return str ? str.split(sp || /\s*[\u001d,;]\s*/) : [];
|
|
}
|
|
|
|
export default helper(strSplit);
|