MCPcopy
hub / github.com/baidu/amis / toJSON

Method toJSON

packages/office-viewer/src/util/LinkedMap.ts:377–385  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

375 }
376
377 toJSON(): [K, V][] {
378 const data: [K, V][] = [];
379
380 this.forEach((value, key) => {
381 data.push([key, value]);
382 });
383
384 return data;
385 }
386
387 fromJSON(data: [K, V][]): void {
388 this.clear();

Callers 6

Action.test.tsxFile · 0.80
Page.test.tsxFile · 0.80
nextGlobalDataFunction · 0.80
downStreamFunction · 0.80
404.test.tsxFile · 0.80

Calls 2

forEachMethod · 0.95
pushMethod · 0.65

Tested by

no test coverage detected