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

Method toArray

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

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

(includeLabel = true)

Source from the content-addressed store, hash-verified

1709 * @override
1710 */
1711 toArray(includeLabel = true) {
1712 const arr = [
1713 this.requested_, // field 1 - requested
1714 ];
1715 if (includeLabel) {
1716 arr.unshift(this.label());
1717 }
1718 return arr;
1719 }
1720
1721 /**
1722 * @return {string}

Callers

nothing calls this directly

Calls 1

labelMethod · 0.95

Tested by

no test coverage detected