Commit 8048122
Return unwrapped primitive values from Array iterator (#1178)
Change the default `for...of` iterator on JSONArray to return raw
primitive values instead of Primitive wrappers, making it consistent
with `.values()`, `.map()`, and other read-only array methods. Add
`elements()` method as an alternative for accessing wrapped elements
with CRDT metadata.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent a69dc51 commit 8048122
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| |||
324 | 329 | | |
325 | 330 | | |
326 | 331 | | |
| 332 | + | |
| 333 | + | |
327 | 334 | | |
328 | 335 | | |
329 | 336 | | |
| |||
398 | 405 | | |
399 | 406 | | |
400 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
401 | 418 | | |
402 | 419 | | |
403 | 420 | | |
| |||
0 commit comments