shared/deepAssign

Classes

DeepAssign

Members

(inner, constant) deepAssign :DeepAssignFn

Source:
See:

Shortcut method for new DeepAssign().assign(...).

Type:

(inner, constant) deepAssignWithConcat :DeepAssignFn

Source:
See:

Shortcut method for new DeepAssign({ arrayMode: 'concat' }).assign(...).

Type:

(inner, constant) deepAssignWithOverwrite :DeepAssignFn

Source:
See:

Shortcut method for new DeepAssign({ arrayMode: 'overwrite' }).assign(...).

Type:

(inner, constant) deepAssignWithShallowMerge :DeepAssignFn

Source:
See:

Shortcut method for new DeepAssign({ arrayMode: 'shallowMerge' }).assign(...).

Type:

Type Definitions

DeepAssignArrayMode

Source:
Type:
  • 'merge' | 'shallowMerge' | 'concat' | 'overwrite'

DeepAssignFn(…targets) → {Object|Array}

Source:

A function that makes a deep merge (and copy) of a list of objects and/or arrays.

Parameters:
Name Type Attributes Description
targets * <repeatable>

The objects to merge; if one of them is not an object nor an array, it will be ignored.

Returns:
Type
Object | Array

DeepAssignOptions

Source:
Properties:
Name Type Attributes Default Description
arrayMode DeepAssignArrayMode <optional>
'merge'

Defines how array assignments should be handled.

Type: