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

Method concat

packages/mobx/src/types/legacyobservablearray.ts:81–88  ·  view source on GitHub ↗
(...arrays: T[][])

Source from the content-addressed store, hash-verified

79 }
80
81 concat(...arrays: T[][]): T[] {
82 ;(this[$mobx] as ObservableArrayAdministration).atom_.reportObserved()
83 return Array.prototype.concat.apply(
84 (this as any).slice(),
85 //@ts-ignore
86 arrays.map(a => (isObservableArray(a) ? a.slice() : a))
87 )
88 }
89
90 get length(): number {
91 return (this[$mobx] as ObservableArrayAdministration).getArrayLength_()

Callers 15

utils.tsFile · 0.80
array.jsFile · 0.80
array.jsFile · 0.80
babel.min.jsFile · 0.80
rFunction · 0.80
nFunction · 0.80
gFunction · 0.80
kFunction · 0.80
tFunction · 0.80
iFunction · 0.80
sFunction · 0.80
yFunction · 0.80

Calls 2

isObservableArrayFunction · 0.70
reportObservedMethod · 0.65

Tested by

no test coverage detected