Skip to content

addPreChore()

github-actions[bot] edited this page Sep 30, 2024 · 1 revision

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()