Skip to content

1.3.0

Compare
Choose a tag to compare
@shysolocup shysolocup released this 12 Nov 04:41
· 59 commits to main since this release
d347c7c

aepl 1.3.0

  • added pre classes and functions that let you create stuff for before the class is initiated
  • added setInspect for changing the output on the console
const cl = require('aepl');


cl.init("Example", class {
    constructor(data) {
        this.data = data
    }
});


Example.newPF("from", function(data) {
    return new Example(data);
});


Example.setInspect(function() {
    return `Example Class (${this.data.length})  [ ${this.data.join(", ")} ]`;
});


console.log(Example.from([ 1, 2, 3 ])); // Example Class (3)  [ 1, 2, 3 ]