MCPcopy
hub / github.com/microsoft/SandDance / setid

Function setid

docs/app/js/sanddance-app.js:107221–107224  ·  view source on GitHub ↗

* Sets the id of a tuple. * @param {object} t - The input tuple. * @param {*} id - The id value to set. * @return {object} the input tuple.

(t, id)

Source from the content-addressed store, hash-verified

107219 * @param {*} id - The id value to set.
107220 * @return {object} the input tuple.
107221 */ function setid(t, id) {
107222 t[TUPLE_ID_KEY] = id;
107223 return t;
107224}
107225/**
107226 * Ingest an object or value as a data tuple.
107227 * If the input value is an object, an id field will be added to it. For

Callers 2

ingest$1Function · 0.70
replaceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected