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

Method toArray

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

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

(includeLabel = true)

Source from the content-addressed store, hash-verified

1762 * @override
1763 */
1764 toArray(includeLabel = true) {
1765 const arr = [
1766 this.urlPath_, // field 1 - url_path
1767 ];
1768 if (includeLabel) {
1769 arr.unshift(this.label());
1770 }
1771 return arr;
1772 }
1773
1774 /**
1775 * @return {string}

Callers

nothing calls this directly

Calls 1

labelMethod · 0.95

Tested by

no test coverage detected