mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
* Cleanup Part 2: Electric Boogaloo (Reloaded) * Moar cleanup * Tweak NOT_A_PERMISSION error
5 lines
132 B
JavaScript
5 lines
132 B
JavaScript
module.exports = function cloneObject(obj) {
|
|
const cloned = Object.create(obj);
|
|
Object.assign(cloned, obj);
|
|
return cloned;
|
|
};
|