Module

objects

This file contains a series of functionalities related to getting and setting from a objects. It is based on lodash library.

View Source utils/objects.js, line 1

Methods

# static get(obj, path, val) → {any}

Port of lodash function get.

Parameters:
Name Type Description
obj Object

Target object

path string

Path to use

val any

Default value

See:

View Source utils/objects.js, line 34

Value returned

any

# static set(obj, path, val)

Port of lodash function set.

Parameters:
Name Type Description
obj Object

Target object.

path string

Path to use.

val any

Vale to set.

See:

View Source utils/objects.js, line 17