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

Method toArray

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

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

(includeLabel = true)

Source from the content-addressed store, hash-verified

1934 * @override
1935 */
1936 toArray(includeLabel = true) {
1937 const arr = [
1938 this.sku_, // field 1 - sku
1939 this.oldSku_, // field 2 - old_sku
1940 this.oneTime_, // field 3 - one_time
1941 this.playOffer_, // field 4 - play_offer
1942 this.oldPlayOffer_, // field 5 - old_play_offer
1943 this.customMessage_, // field 6 - custom_message
1944 this.anonymous_, // field 7 - anonymous
1945 this.sharingPolicyEnabled_, // field 8 - sharing_policy_enabled
1946 ];
1947 if (includeLabel) {
1948 arr.unshift(this.label());
1949 }
1950 return arr;
1951 }
1952
1953 /**
1954 * @return {string}

Callers

nothing calls this directly

Calls 1

labelMethod · 0.95

Tested by

no test coverage detected