Skip to content

Commit

Permalink
bkp
Browse files Browse the repository at this point in the history
  • Loading branch information
Grazziani Xavier committed Jan 30, 2024
1 parent d359db2 commit d8da6a8
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,21 @@ module.exports = {
},
Object: {
pickObject,
toString
toString,

removeObjectAttributes: (obj, ...attributes) => {
if (obj && typeof obj === "object") {
let updatedObj = {};
Object.keys(obj).forEach(k => {
if (!attributes.includes(k)) {
updatedObj[k] = obj[k]
}
})

return updatedObj;
} else {
return obj
}
}
}
};

0 comments on commit d8da6a8

Please sign in to comment.