funcs
Variable: funcs
Section titled “Variable: funcs”const funcs: object;Type declaration
Section titled “Type declaration”deepMerge()
Section titled “deepMerge()”deepMerge: {<T, U> (target, source): T & U;<T, U, V> (target, middle, source): T & U & V;};Call Signature
Section titled “Call Signature”<T, U>(target, source): T & U;Deep merges two or three objects.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
U |
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
target | T | |
source | U |
Returns
Section titled “Returns”T & U
Call Signature
Section titled “Call Signature”<T, U, V>( target, middle, source): T & U & V;Deep merges two or three objects.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
U |
V |
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
target | T | |
middle | U | |
source | V |
Returns
Section titled “Returns”T & U & V
geocode()
Section titled “geocode()”geocode: (query, callback) => boolean;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
query | any |
callback | any |
Returns
Section titled “Returns”boolean
getNestedValue()
Section titled “getNestedValue()”getNestedValue: (obj, path) => any;Gets a nested value from an object using dot or PHP-style bracket notation.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
obj | any | The object to traverse. |
path | string | The path string (e.g. ‘a.b.c’ or ‘a[b][c]’). |
Returns
Section titled “Returns”any
The value at the nested path, or undefined if not found.
Example
Section titled “Example”getNestedValue(obj, 'a.b.c')getNestedValue(obj, 'a[b][c]')splitObjectAndField()
Section titled “splitObjectAndField()”splitObjectAndField: (fields) => object;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
fields | string |
Returns
Section titled “Returns”object
field: string;object
Section titled “object”object: string;throttle()
Section titled “throttle()”throttle: (method, delay, scope, params) => void;Throttles a function call by a delay.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
method | any | |
delay | any | |
scope | any | |
params | any |
Returns
Section titled “Returns”void