Function
Unary

_.unary(func)

_throttle(func, [wait=0], [options={}])

Creates a function that accepts up to one argument, ignoring any additional arguments.

Arguments

func (Function): The function to cap arguments for.
(Function): Returns the new capped function.

Returns

(Function):Returns the new throttled function.

Example