open-vault/ui/app/helpers/includes.js

8 lines
160 B
JavaScript

import Ember from 'ember';
export function includes([haystack, needle]) {
return haystack.includes(needle);
}
export default Ember.Helper.helper(includes);