-
Notifications
You must be signed in to change notification settings - Fork 0
addFunc()
paige edited this page Sep 25, 2023
·
7 revisions
addFunc() and addFunction() adds a new function
const Class = require('aepl');
new Class("Main", class {
constructor() {
this.data = [1, 2, 3];
}
});
Main.addFunc("reverse", function() {
return this.data.reverse();
});
let main = new Main();
console.log(main.reverse()); // [3, 2, 1]
description: adds a new function
calls:
- addFunc()
- addFunction()
- setFunc()
- setFunction()
- newFunc()
- newFunction()
- addF()
- setF()
- newF()
If you want to check out the different versions and changes check out the releases
For a look into the development side check out the src folder
init()
from()
inspect()
new()
addClass()
addFunc()
addProp()
addChore()
addAsyncChore()
addPreClass()
addPreFunc()
addPreProp()
addPreChore()
addPreAChore()
setName()
setInspect()
Subclass
Function
Property
Chore
AsyncChore
Preclass
PreFunction
PreProperty
PreChore
PreAsyncChore
compact
multiple-layers
event handler
alternate names
setting and getting inspects