(index: number)
| 344 | } |
| 345 | |
| 346 | get_(index: number): any | undefined { |
| 347 | if (this.legacyMode_ && index >= this.values_.length) { |
| 348 | console.warn( |
| 349 | __DEV__ |
| 350 | ? `[mobx.array] Attempt to read an array index (${index}) that is out of bounds (${this.values_.length}). Please check length first. Out of bound indices will not be tracked by MobX` |
| 351 | : `[mobx] Out of bounds read: ${index}` |
| 352 | ) |
| 353 | return undefined |
| 354 | } |
| 355 | this.atom_.reportObserved() |
| 356 | return this.dehanceValue_(this.values_[index]) |
| 357 | } |
| 358 | |
| 359 | set_(index: number, newValue: any) { |
| 360 | const values = this.values_ |
no test coverage detected