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

Method toArray

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

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

(includeLabel = true)

Source from the content-addressed store, hash-verified

2597 * @override
2598 */
2599 toArray(includeLabel = true) {
2600 const arr = [
2601 this.close_, // field 1 - close
2602 ];
2603 if (includeLabel) {
2604 arr.unshift(this.label());
2605 }
2606 return arr;
2607 }
2608
2609 /**
2610 * @return {string}

Callers

nothing calls this directly

Calls 1

labelMethod · 0.95

Tested by

no test coverage detected