MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / setItem

Method setItem

packages/core/data/virtual-array/index.ts:94–98  ·  view source on GitHub ↗
(index: number, value: T)

Source from the content-addressed store, hash-verified

92 }
93
94 setItem(index: number, value: T) {
95 if (this._cache[index] !== value) {
96 this.load(index, [value]);
97 }
98 }
99
100 /**
101 * Loads items from an array starting at index.

Calls 1

loadMethod · 0.95

Tested by

no test coverage detected