mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
* Cleanup Part 2: Electric Boogaloo (Reloaded) * Moar cleanup * Tweak NOT_A_PERMISSION error
6 lines
132 B
JavaScript
6 lines
132 B
JavaScript
module.exports = function cloneObject(obj) {
|
|
const cloned = Object.create(obj);
|
|
Object.assign(cloned, obj);
|
|
return cloned;
|
|
};
|