You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per default `set` creates objects for each each missing data. Thus, a pointer to `/list/1` will create an object with `{ list: { 1: {} } }`. If you want to specify array-data you will need to wrap the array-index in array-brackets:
162
-
163
-
```ts
164
-
pointer.set({}, '/list/[1]', 42);
165
-
// { list: [, 42] }
166
-
```
167
-
168
-
Omitting the index from the array-brackets will **append** the item:
0 commit comments