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

Method toArray

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

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

(includeLabel = true)

Source from the content-addressed store, hash-verified

1331 * @override
1332 */
1333 toArray(includeLabel = true) {
1334 const arr = [
1335 this.jwt_, // field 1 - jwt
1336 this.swgUserToken_, // field 2 - swg_user_token
1337 ];
1338 if (includeLabel) {
1339 arr.unshift(this.label());
1340 }
1341 return arr;
1342 }
1343
1344 /**
1345 * @return {string}

Callers

nothing calls this directly

Calls 1

labelMethod · 0.95

Tested by

no test coverage detected