Creates a function that is restricted to invoking func once. Repeat calls to the function return the value of the first call. The func is invoked with the this binding and arguments of the created function.
func
The function to restrict.
Creates a function that is restricted to invoking
func
once. Repeat calls to the function return the value of the first call. Thefunc
is invoked with the this binding and arguments of the created function.