lodash.once is a utility function designed to ensure a given function is only ever executed once. Subsequent calls to the wrapped function will return the value from the initial invocation, effectively memoizing the execution. This is helpful for initialization routines, resource-intensive operations, or when side effects should only occur a single time. It's a concise and reliable way to prevent accidental re-execution and control function behavior.
The npm package lodash.once had a release flurry between September 2013 and December 2013. There were sporadic releases in January 2015, April 2015, January 2016, July 2016 and August 2016. Since then, there have been no further releases recorded up to September 2025.
Lodash.once downloads show a generally upward trend from March 2024 to August 2025, peaking near 100 million downloads. However, September 2025, which is not yet complete, shows a significant drop to roughly 44 million downloads.