Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default function (data) {
- return data.map(object => {
- const resObj = {};
- const usingProp = object.usable;
- usingProp.filter((prop) => usingProp.hasOwnProperty[prop] = resObj[prop] = object[prop]);
- return resObj
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement