Skip to content
MapSVG 8/Documentation

funcs

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

Deep merges two or three objects.

Type Parameter
T
U
ParameterTypeDescription
targetT
sourceU

T & U

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

Deep merges two or three objects.

Type Parameter
T
U
V
ParameterTypeDescription
targetT
middleU
sourceV

T & U & V

geocode: (query, callback) => boolean;
ParameterType
queryany
callbackany

boolean

getNestedValue: (obj, path) => any;

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

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

any

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

getNestedValue(obj, 'a.b.c')
getNestedValue(obj, 'a[b][c]')
splitObjectAndField: (fields) => object;
ParameterType
fieldsstring

object

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

Throttles a function call by a delay.

ParameterTypeDescription
methodany
delayany
scopeany
paramsany

void