powered by
Returns a character vector of all keys in a map.
am_keys(doc, obj)
Character vector of keys (empty if map is empty)
An Automerge document
An Automerge object ID (must be a map), or AM_ROOT for the document root
AM_ROOT
doc <- am_create() am_put(doc, AM_ROOT, "a", 1) am_put(doc, AM_ROOT, "b", 2) keys <- am_keys(doc, AM_ROOT) keys # c("a", "b") am_close(doc)
Run the code above in your browser using DataLab