summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/catapult/tracing/third_party/oboe/src/ascent.js
blob: c5cec4e44bd88262bcac751f07ff62f52cc9faf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
 * Get a new key->node mapping
 * 
 * @param {String|Number} key
 * @param {Object|Array|String|Number|null} node a value found in the json
 */
function namedNode(key, node) {
   return {key:key, node:node};
}

/** get the key of a namedNode */
var keyOf = attr('key');

/** get the node from a namedNode */
var nodeOf = attr('node');