extends Record<string, any>
Function that peceives the path as a string and generates an array of paths out of it. This output could be an empty array if the input string is empty.
From a given object get the value defined at a given path, denoted by dot notation or an array. This function serves as a wrapper function for the getFromBaseFunction. The purpose of it is to provide with high-level formatting.
From a given object get the value defined at a given path.
Check if specific fields in an object will be updated
Original object
Updated value
boolean
Merge either an object or an array together
This function is responsible for checking the type of the path and deciding the correct operation. If that path given is string, then it will be converted to array of paths using our helper function. If the path given is not string, it simply returns the path.
Immutably removes an item from an object or array at a given path, denoted by dot notation or an array.
If the item is already removed nothing is changed. i.e. values is returned.
Immutably removes an item from an object or array at a given path
Immutably sets a value in an object or array at a given path, denoted by dot notation or an array.
If the value is already identical nothing is changed. i.e. values is returned. This function is similar to Lodash 'set', however it also;
Immutably sets a value in an object or array at a given path.
Generated using TypeDoc
Function that receivs an object and creates an array out of that object properties. The properties in the end result array are chosen based on the checks passed. For instance, if we passed in an object of
obj = {a : 1, b:2, c:3}
, and introduced checks to only include properties with the keysa
andb
, the end result would look like this: [{a:1}, {b:2}]