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

Method toArray

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

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

(includeLabel = true)

Source from the content-addressed store, hash-verified

660 * @override
661 */
662 toArray(includeLabel = true) {
663 const arr = [
664 this.embedderOrigin_, // field 1 - embedder_origin
665 this.transactionId_, // field 2 - transaction_id
666 this.referringOrigin_, // field 3 - referring_origin
667 this.utmSource_, // field 4 - utm_source
668 this.utmCampaign_, // field 5 - utm_campaign
669 this.utmMedium_, // field 6 - utm_medium
670 this.sku_, // field 7 - sku
671 this.readyToPay_, // field 8 - ready_to_pay
672 this.label_, // field 9 - label
673 this.clientVersion_, // field 10 - client_version
674 this.url_, // field 11 - url
675 this.clientTimestamp_ ? this.clientTimestamp_.toArray(includeLabel) : [], // field 12 - client_timestamp
676 this.readerSurfaceType_, // field 13 - reader_surface_type
677 this.integrationVersion_, // field 14 - integration_version
678 ];
679 if (includeLabel) {
680 arr.unshift(this.label());
681 }
682 return arr;
683 }
684
685 /**
686 * @return {string}

Callers

nothing calls this directly

Calls 2

labelMethod · 0.95
toArrayMethod · 0.45

Tested by

no test coverage detected