- Source:
Methods
(inner) funcBodyEquals(f1, f2) → {boolean}
- Source:
Check if function bodies are equal
Parameters:
Name | Type | Description |
---|---|---|
f1 |
function | |
f2 |
function |
Returns:
- Type
- boolean
(inner) throttle(func, intervalMs) → {function}
- Source:
Throttle function execution.
https://css-tricks.com/debouncing-throttling-explained-examples/
Parameters:
Name | Type | Description |
---|---|---|
func |
function | function |
intervalMs |
Number |
Returns:
- throttled function
- Type
- function
(inner) debounce(func, afterMs) → {function}
- Source:
Debounce function execution.
https://css-tricks.com/debouncing-throttling-explained-examples/
Parameters:
Name | Type | Description |
---|---|---|
func |
function | function |
afterMs |
Number | milliseconds after last call |
Returns:
- debounced function
- Type
- function
(inner) bindArgs(func, args) → {function}
- Source:
Bind args to function and return a no-arg function
Parameters:
Name | Type | Description |
---|---|---|
func |
function | source function |
args |
Array.<any> | array of arguments to bind |
Returns:
- Type
- function