just.toObjectLiteral(array) → {object}
Converts
[[k0, v0], {k1: v1}] to {k0: v0, k1: v1}.- Deprecated:
- since 1.0.0-rc.22
- Source:
- toObjectLiteral.js, line 16
Parameters:
| Name | Type | Description |
|---|---|---|
| array | !object[] or object | An array containing sub-arrays with object literal pairs, or object literals: [[k, v], {k: v}]. |
Returns:
An object literal.
- Type
- object
