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

Method toArray

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

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

(includeLabel = true)

Source from the content-addressed store, hash-verified

2047 * @override
2048 */
2049 toArray(includeLabel = true) {
2050 const arr = [
2051 this.subscribe_, // field 1 - subscribe
2052 ];
2053 if (includeLabel) {
2054 arr.unshift(this.label());
2055 }
2056 return arr;
2057 }
2058
2059 /**
2060 * @return {string}

Callers

nothing calls this directly

Calls 1

labelMethod · 0.95

Tested by

no test coverage detected