MCPcopy
hub / github.com/mobxjs/mobx / replace

Function replace

packages/mobx/src/types/observablearray.ts:426–429  ·  view source on GitHub ↗
(newItems: any[])

Source from the content-addressed store, hash-verified

424 },
425
426 replace(newItems: any[]) {
427 const adm: ObservableArrayAdministration = this[$mobx]
428 return adm.spliceWithArray_(0, adm.values_.length, newItems)
429 },
430
431 // Used by JSON.stringify
432 toJSON(): any[] {

Callers

nothing calls this directly

Calls 1

spliceWithArray_Method · 0.80

Tested by

no test coverage detected