Skip to main content

Variable: funcs

const funcs: object;

Type declaration

deepMerge()

deepMerge: {
<T, U> (target, source): T & U;
<T, U, V> (target, middle, source): T & U & V;
};

Call Signature

<T, U>(target, source): T & U;

Deep merges two or three objects.

Type Parameters
Type Parameter
T
U
Parameters
ParameterTypeDescription
targetT
sourceU
Returns

T & U

Call Signature

<T, U, V>(
target,
middle,
source): T & U & V;

Deep merges two or three objects.

Type Parameters
Type Parameter
T
U
V
Parameters
ParameterTypeDescription
targetT
middleU
sourceV
Returns

T & U & V

geocode()

geocode: (query, callback) => boolean;

Parameters

ParameterType
queryany
callbackany

Returns

boolean

getNestedValue()

getNestedValue: (obj, path) => any;

Gets a nested value from an object using dot or PHP-style bracket notation.

Parameters

ParameterTypeDescription
objanyThe object to traverse.
pathstringThe path string (e.g. 'a.b.c' or 'a[b][c]').

Returns

any

The value at the nested path, or undefined if not found.

Example

getNestedValue(obj, 'a.b.c')
getNestedValue(obj, 'a[b][c]')

splitObjectAndField()

splitObjectAndField: (fields) => object;

Parameters

ParameterType
fieldsstring

Returns

object

field
field: string;
object
object: string;

throttle()

throttle: (method, delay, scope, params) => void;

Throttles a function call by a delay.

Parameters

ParameterTypeDescription
methodany
delayany
scopeany
paramsany

Returns

void