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

Method toArray

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

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

(includeLabel = true)

Source from the content-addressed store, hash-verified

743 * @override
744 */
745 toArray(includeLabel = true) {
746 const arr = [
747 this.eventOriginator_, // field 1 - event_originator
748 this.isFromUserAction_, // field 2 - is_from_user_action
749 ];
750 if (includeLabel) {
751 arr.unshift(this.label());
752 }
753 return arr;
754 }
755
756 /**
757 * @return {string}

Callers

nothing calls this directly

Calls 1

labelMethod · 0.95

Tested by

no test coverage detected