This repository was archived by the owner on Aug 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
init()
paige edited this page Sep 20, 2023
·
1 revision
init() is an alternative to new Class()
const Class = require('aepl');
Class.init("Main", class {
constructor() {
this.data = [1, 2, 3];
}
});
Main.new("func", "reverse", function() {
return this.data.reverse();
});
let main = new Main();
console.log(main.reverse()); // [3, 2, 1]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