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

Method toArray

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

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

(includeLabel = true)

Source from the content-addressed store, hash-verified

1994 * @override
1995 */
1996 toArray(includeLabel = true) {
1997 const arr = [
1998 this.isClicked_, // field 1 - is_clicked
1999 ];
2000 if (includeLabel) {
2001 arr.unshift(this.label());
2002 }
2003 return arr;
2004 }
2005
2006 /**
2007 * @return {string}

Callers

nothing calls this directly

Calls 1

labelMethod · 0.95

Tested by

no test coverage detected