MCPcopy
hub / github.com/vuejs/core / shallowReadArray

Function shallowReadArray

packages/reactivity/src/arrayInstrumentations.ts:30–33  ·  view source on GitHub ↗
(arr: T[])

Source from the content-addressed store, hash-verified

28 * Track array iteration and return raw array
29 */
30export function shallowReadArray<T>(arr: T[]): T[] {
31 track((arr = toRaw(arr)), TrackOpTypes.ITERATE, ARRAY_ITERATE_KEY)
32 return arr
33}
34
35function toWrapped(target: unknown, item: unknown) {
36 if (isReadonly(target)) {

Callers 5

renderListFunction · 0.90
iteratorFunction · 0.85
applyFunction · 0.85
reduceFunction · 0.85

Calls 2

trackFunction · 0.90
toRawFunction · 0.90

Tested by

no test coverage detected