Ensures a function is called only once
const test = (msg) => console.log(msg);once(test, 'a'); // logs 'a'once(test, 'b'); // no log this time
Rest
Generated using TypeDoc
Ensures a function is called only once
Example