A JSON object that keeps its keys in the order they were set, as a
JavaScript object does, so answers serialise byte for byte as the
TypeScript library's. Rows from the store and the bodies of the API's
answers are these. It implements Access, so row["name"] reads a key.
Documented for its type; its functions are internal and can change in any release.
Summary
Functions
The object without key.
{:ok, value} when the key is there, else :error.
The value at key, or default.
Whether the key is there.
Object.keys: the keys in JavaScript's order.
{...a, ...b}: b's keys set over a's, in turn.
An empty object.
An object of these pairs, set in turn: a key given twice keeps its first place and its last value, as a JavaScript object literal does. A keyword list keeps its order; a map is set in its keys' term order.
Gives key the value: a new key takes its place in JavaScript's order, a
key already there keeps its place.
How many keys there are.
The keys and values, in order (Object.entries).
Object.values.
Types
A JavaScript number.
@type value() :: nil | boolean() | number_value() | String.t() | [value()] | t() | :undefined
A JSON value: JavaScript's numbers include its infinities and NaN.
Functions
The object without key.
{:ok, value} when the key is there, else :error.
The value at key, or default.
Whether the key is there.
Object.keys: the keys in JavaScript's order.
@spec merge(t(), t() | Enumerable.t()) :: t()
{...a, ...b}: b's keys set over a's, in turn.
@spec new() :: t()
An empty object.
@spec new(Enumerable.t()) :: t()
An object of these pairs, set in turn: a key given twice keeps its first place and its last value, as a JavaScript object literal does. A keyword list keeps its order; a map is set in its keys' term order.
Gives key the value: a new key takes its place in JavaScript's order, a
key already there keeps its place.
@spec size(t()) :: non_neg_integer()
How many keys there are.
The keys and values, in order (Object.entries).
Object.values.