A function that executes once, and returns undefined
on sequential calls. Learn how to build a scoped package yourself here!
npm i @hi-matbub/once
const { executeOnce } = require("@hi-matbub/once");
const once = executeOnce();
for (let i = 0; i < 3; i++){
console.log(once(() => "Hello, World!"));
}