Skip to content

ungap/once

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@ungap/once

A Function.prototype.once polyfill.

import '@ungap/once';
// require('@ungap/once');

const log = console.log.once().bind(console);

log(1); // logs 1
log(1); // does nothing

About

Function.prototype.once polyfill

Resources

Stars

Watchers

Forks

Packages

No packages published