Extra Credit

onetime

Ensure a function is only called once

$npm install onetime

Official docs outline

Extra Credit builds an outline of onetime's docs the first time your work uses it. Until then, start at the official documentation.

All 9,484