MCPcopy
hub / github.com/tensorflow/playground / getHiddenProps

Method getHiddenProps

src/state.ts:269–277  ·  view source on GitHub ↗

Returns all the hidden properties.

()

Source from the content-addressed store, hash-verified

267
268 /** Returns all the hidden properties. */
269 getHiddenProps(): string[] {
270 let result: string[] = [];
271 for (let prop in this) {
272 if (endsWith(prop, HIDE_STATE_SUFFIX) && String(this[prop]) === "true") {
273 result.push(prop.replace(HIDE_STATE_SUFFIX, ""));
274 }
275 }
276 return result;
277 }
278
279 setHideProperty(name: string, hidden: boolean) {
280 this[name + HIDE_STATE_SUFFIX] = hidden;

Callers 2

playground.tsFile · 0.80
hideControlsFunction · 0.80

Calls 1

endsWithFunction · 0.85

Tested by

no test coverage detected