isaacs / once

Run a function exactly one time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`once.strict(func)` documentation incorrect

astellingwerf opened this issue · comments

The example in the documentation on https://github.com/isaacs/once#oncestrictfunc is incorrect: "ReferenceError: msg is undefined."

Since the argument for once is a callback, its argument is likely intended to be log instead.