MCPcopy Create free account
hub / github.com/ampproject/amphtml / constructor

Method constructor

third_party/subscriptions-project/swg.js:2200–2211  ·  view source on GitHub ↗

* @param {!Array<*>=} data * @param {boolean=} includesLabel

(data = [], includesLabel = true)

Source from the content-addressed store, hash-verified

2198 * @param {boolean=} includesLabel
2199 */
2200 constructor(data = [], includesLabel = true) {
2201 const base = includesLabel ? 1 : 0;
2202
2203 /** @private {?number} */
2204 this.answerId_ = data[base] == null ? null : data[base];
2205
2206 /** @private {?string} */
2207 this.answerText_ = data[1 + base] == null ? null : data[1 + base];
2208
2209 /** @private {?string} */
2210 this.answerCategory_ = data[2 + base] == null ? null : data[2 + base];
2211 }
2212
2213 /**
2214 * @return {?number}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected