| layout | api-command | ||||||
|---|---|---|---|---|---|---|---|
| language | JavaScript | ||||||
| permalink | api/javascript/values/ | ||||||
| command | values | ||||||
| io |
|
||||||
| related_commands |
|
{% apibody %} singleSelection.values() → array object.values() → array {% endapibody %}
Return an array containing all of an object's values. values() guarantees the values will come out in the same order as keys.
Example: Get all of the values from a table row.
// row: { id: 1, mail: "fred@example.com", name: "fred" }
r.table('users').get(1).values().run(conn, callback);
// Result passed to callback
[ 1, "[email protected]", "fred" ]