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

Method toArray

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

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

(includeLabel = true)

Source from the content-addressed store, hash-verified

1090 * @override
1091 */
1092 toArray(includeLabel = true) {
1093 const arr = [
1094 this.jwt_, // field 1 - jwt
1095 this.source_, // field 2 - source
1096 ];
1097 if (includeLabel) {
1098 arr.unshift(this.label());
1099 }
1100 return arr;
1101 }
1102
1103 /**
1104 * @return {string}

Callers

nothing calls this directly

Calls 1

labelMethod · 0.95

Tested by

no test coverage detected