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
addProp()
paige edited this page Sep 25, 2023
·
6 revisions
addProp() and addProperty() adds a new property
const Class = require('aepl');
new Class("Main", class {
constructor() {
this.data = [1, 2, 3];
}
});
Main.addProp("reversed", function() {
return this.data.reverse();
});
let main = new Main();
console.log(main.reversed); // [3, 2, 1]description: adds a new property
calls:
- addProp()
- addProperty()
- setProp()
- setProperty()
- newProp()
- newProperty()
- addP()
- setP()
- newP()
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