addPreChore() - shysolocup/aepl GitHub Wiki

addPreChore() adds a new pre chore making it so you can use without creating an instance

const Class = require('aepl');

let data = [1, 2, 3];


new Class("Main", class {});


Main.addPreChore("reverse", `return data.reverse();`);


console.log(Main.reverse()); // [3, 2, 1]

Class.addPreChore()

description: adds a new pre chore making it so you can use without creating an instance calls:

  • addPreChore()
  • setPreChore()
  • newPreChore()