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

Method toArray

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

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

(includeLabel = true)

Source from the content-addressed store, hash-verified

2543 * @override
2544 */
2545 toArray(includeLabel = true) {
2546 const arr = [
2547 this.seconds_, // field 1 - seconds
2548 this.nanos_, // field 2 - nanos
2549 ];
2550 if (includeLabel) {
2551 arr.unshift(this.label());
2552 }
2553 return arr;
2554 }
2555
2556 /**
2557 * @return {string}

Callers 13

component.jsFile · 0.45
sendPostMethod · 0.45
sendBeaconMethod · 0.45
bundle.jsFile · 0.45
toArrayMethod · 0.45
toArrayMethod · 0.45
toArrayMethod · 0.45
toArrayMethod · 0.45
toArrayMethod · 0.45
toArrayMethod · 0.45
executeMethod · 0.45

Calls 1

labelMethod · 0.95

Tested by

no test coverage detected