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

Function createArrayEntryDescriptor

packages/mobx/src/types/legacyobservablearray.ts:121–132  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

119})
120
121function createArrayEntryDescriptor(index: number) {
122 return {
123 enumerable: false,
124 configurable: true,
125 get: function () {
126 return this[$mobx].get_(index)
127 },
128 set: function (value) {
129 this[$mobx].set_(index, value)
130 }
131 }
132}
133
134function createArrayBufferItem(index: number) {
135 defineProperty(LegacyObservableArray.prototype, "" + index, createArrayEntryDescriptor(index))

Callers 2

createArrayBufferItemFunction · 0.85

Calls 2

get_Method · 0.45
set_Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…