I have an object that I would like to filter it\'s keys..
Im trying to filter the object by an ID, like so:
let myKeys = Object.keys(data).filter(fun
Array#filter is expecting a boolean value as return value, you might use this
let myKeys = Object.keys(data).filter(key => key == vm.system_id);
for getting the keys and then render a new object with the given keys.
To get all items in a single array, you could collect them with
let result = myKeys.reduce((r, k) => r.concat(data[k]), []);