Namespace: vcs

vcs

Namespaces

oblique
ui
vcm

Methods

vcs.deepForEach(iterable, fn)

calls the callback Function for Each nested Element in the Object or Array

Name Type Description
iterable Object | Array.<*>

Object or Array to iterate over

fn function

function to be called for each element

vcs.eventCannotBeFromMap(event){boolean}

Checks whether an HTMLEvent cannot possibly be called from within the maps focus. It may still not be the maps focus, check is not extensive.

Name Type Description
event Event

vcs.isEmail(email){boolean}

Test whether a string is an email address or not

Name Type Description
email string

vcs.parseBoolean(value, defaultValue){boolean}

parses a boolean value from an arbitrary datatype

Name Type Description
value *
defaultValue boolean

vcs.parseEnumValue(value, enumValues, defaultValue){T}

checks if a value is a member of an enum otherwise returns the defaultValue. Enums of type number or string

Name Type Description
value *
enumValues Object.<T>
defaultValue T