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

Method toArray

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

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

(includeLabel = true)

Source from the content-addressed store, hash-verified

1655 * @override
1656 */
1657 toArray(includeLabel = true) {
1658 const arr = [
1659 this.authCode_, // field 1 - auth_code
1660 this.token_, // field 2 - token
1661 ];
1662 if (includeLabel) {
1663 arr.unshift(this.label());
1664 }
1665 return arr;
1666 }
1667
1668 /**
1669 * @return {string}

Callers

nothing calls this directly

Calls 1

labelMethod · 0.95

Tested by

no test coverage detected