forEach(object: Object, cb: function, options: Object, options.pass: string, options.fromRight: boolean)
Loops through object and executes the callback function.
Name | Type | Attribute | Description |
---|---|---|---|
object | Object | ||
cb | function | ||
options | Object | ||
options.pass | string | nullable: true, optional: true, default: "both" | Choose what arguments to pass to callback. (values , keys or both ) |
options.fromRight | boolean | nullable: true, optional: true, default: false | If true, starts the loop from right (in a reversed order). |
Gets from object by path.
Name | Type | Attribute | Description |
---|---|---|---|
object | Object | ||
path | string |
Determines if object has the given key(s).
Name | Type | Attribute | Description |
---|---|---|---|
object | Object | ||
key | any | Could be everything: String, an array of strings, or a function that returns a boolean. | |
strict | boolean | nullable: true | If true and key is an array, returns true if key is exactly equal to object keys. |
Checks if the given argument is an object.
Name | Type | Attribute | Description |
---|---|---|---|
obj | Object | ||
acceptArrays | boolean | nullable: true | If true, accepts arrays too. |
Checks if the given argument is a pure object.
Name | Type | Attribute | Description |
---|---|---|---|
obj | Object |
Merges given objects with no recursion.
Name | Type | Attribute | Description |
---|---|---|---|
objects | ...Object |
Merges with recursion. (deep merge)
Name | Type | Attribute | Description |
---|---|---|---|
target | Object | ||
source | Object |
Gives you only the wanted keys.
Name | Type | Attribute | Description |
---|---|---|---|
object | Object | ||
keys | string | string[] |
Parses the path to an array.
Name | Type | Attribute | Description |
---|---|---|---|
path | string |