You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui-v2/app/helpers/difference.js

10 lines
270 B

import { helper } from '@ember/component/helper';
import { get } from '@ember/object';
export function difference(params, hash) {
return params[0].filter(function(item) {
return !params[1].findBy('ID', get(item, 'ID'));
});
}
export default helper(difference);