Merges one or more source objects into a target object. Properties in later sources overwrite earlier ones.
The target object to merge into
Rest...sources: object[]One or more source objects to merge from
The target object with all source properties merged in
Creates a new object with specified key-value pairs. Arguments are provided as alternating key-value pairs. If no arguments are provided, an empty object will be created.
Rest...args: any[]Alternating key-value pairs (key1, value1, key2, value2, ...)
A new object constructed from the provided key-value pairs
Defines new properties or modifies existing properties on an object and returns the object.
The object to define properties on
An object whose keys represent property names and whose values are property descriptors
The object with the defined properties
Defines a new property or modifies an existing property on an object and returns the object.
The object to define the property on
The name of the property to define or modify
The descriptor for the property being defined or modified
The object with the defined property
Retrieves a property value from an object by its property name.
The object from which to retrieve the property value
The name of the property to retrieve
The value of the specified property, or undefined if the object is nullish
Returns a property descriptor for an own property of an object.
The object to retrieve the property descriptor from
The name of the property
The property descriptor, or undefined if the property does not exist
Determines if an object has a specified property as its own property (as opposed to inheriting it from the prototype chain).
The object to check
The name of the property to test
True if the object has the specified own property, otherwise false
Determines if an object exists in another object's prototype chain.
The object whose prototype chain is to be checked
The prototype object to search for
True if the prototype object is found in the object's prototype chain, otherwise false
Sets a property on an object with a specified value and returns the
object. If the input object is undefined or null, a new object
will be created.
The object to set the property on
The name of the property to set
The value to assign to the property
The modified object with the new property value
Provides functional transformations for JavaScript objects within HotMesh mapping rules. Although inspired by JavaScript, these methods have been adapted to follow a functional approach. Each transformation is a function that expects one or more input parameters from the prior row in the
@pipestructure.Remarks
Invoked via
{@object.<method>}in YAML mapping rules.