Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

just-once

1.1.1 • Public • Published

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

Install

npm i just-once

DownloadsWeekly Downloads

2,283

Version

1.1.1

License

MIT

Unpacked Size

2.3 kB

Total Files

4

Last publish

Collaborators

  • avatar