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

Method toArray

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

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

(includeLabel = true)

Source from the content-addressed store, hash-verified

312 * @override
313 */
314 toArray(includeLabel = true) {
315 const arr = [
316 this.action_, // field 1 - action
317 ];
318 if (includeLabel) {
319 arr.unshift(this.label());
320 }
321 return arr;
322 }
323
324 /**
325 * @return {string}

Callers

nothing calls this directly

Calls 1

labelMethod · 0.95

Tested by

no test coverage detected