Remove unnecessary inheritance from `Function` class
This commit is contained in:
parent
aba491e942
commit
47b256a92a
|
@ -407,15 +407,12 @@ function escapeRegExp(string) {
|
|||
|
||||
/**
|
||||
* A base class for creating callable objects.
|
||||
*
|
||||
* @extends Function
|
||||
*/
|
||||
class Callable extends Function {
|
||||
class Callable {
|
||||
/**
|
||||
* Creates a new instance of the Callable class.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
/**
|
||||
* Creates a closure that delegates to a private method '_call' with the given arguments.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue