mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
refactor(Util): make class extend null (#6000)
This commit is contained in:
@@ -10,11 +10,7 @@ const isObject = d => typeof d === 'object' && d !== null;
|
||||
/**
|
||||
* Contains various general-purpose utility methods.
|
||||
*/
|
||||
class Util {
|
||||
constructor() {
|
||||
throw new Error(`The ${this.constructor.name} class may not be instantiated.`);
|
||||
}
|
||||
|
||||
class Util extends null {
|
||||
/**
|
||||
* Flatten an object. Any properties that are collections will get converted to an array of keys.
|
||||
* @param {Object} obj The object to flatten.
|
||||
|
||||
Reference in New Issue
Block a user