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

Method toArray

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

* @param {boolean=} includeLabel * @return {!Array<?>} * @override

(includeLabel = true)

Source from the content-addressed store, hash-verified

2258 * @override
2259 */
2260 toArray(includeLabel = true) {
2261 const arr = [
2262 this.answerId_, // field 1 - answer_id
2263 this.answerText_, // field 2 - answer_text
2264 this.answerCategory_, // field 3 - answer_category
2265 ];
2266 if (includeLabel) {
2267 arr.unshift(this.label());
2268 }
2269 return arr;
2270 }
2271
2272 /**
2273 * @return {string}

Callers

nothing calls this directly

Calls 1

labelMethod · 0.95

Tested by

no test coverage detected