RevelaOS/node_modules/just-once
2023-10-15 23:53:41 +01:00
..
index.js [🎉] Initial Commit 2023-10-15 23:53:41 +01:00
LICENSE [🎉] Initial Commit 2023-10-15 23:53:41 +01:00
package.json [🎉] Initial Commit 2023-10-15 23:53:41 +01:00
README.md [🎉] Initial Commit 2023-10-15 23:53:41 +01:00

just-once

Part of a library of zero-dependency npm modules that do just do one thing.
Guilt-free utilities for every occasion.

Try it now

import once from 'just-once';

const fn = once(() => console.log('hello'));

fn();
// logs 'hello'
fn();
// does nothing