open-consul/ui/packages/consul-ui/app/helpers/starts-with.js

8 lines
192 B
JavaScript
Raw Normal View History

import { helper } from '@ember/component/helper';
export function startsWith([needle, haystack = ''] /*, hash*/) {
return haystack.startsWith(needle);
}
export default helper(startsWith);