utils/object

Collection of functions operating on objects.

Source:

Methods

(inner) merge(…object) → {object}

Source:

Merge two or more objects. The second and all following objects will be merged into the first one.

Parameters:
Name Type Attributes Description
object object <repeatable>

The objects to merge

Returns:
Type
object

(inner) object_and(origin, filter) → {object}

Source:

Filter an object via white list.

Parameters:
Name Type Description
origin object

The object to filter

filter object

The object containing the white list

Returns:

The filtered result

Type
object

(inner) object_sub(origin, filter) → {object}

Source:

Filter an object via black list.

Parameters:
Name Type Description
origin object

The object to filter

filter object

The object containing the black list

Returns:

The filtered result

Type
object

(inner) to_array(collection) → {array}

Source:

Convert any collection (like NodeList) into an array.

Parameters:
Name Type Description
collection collection

The collection to convert into an array

Returns:
Type
array