swiftwasm / WebAPIKit

Access the DOM and other Web APIs from Swift! (Very much a WIP)
MIT License
61 stars 8 forks source link

Correctly handle FrozenArray and ObservableArray #36

Open j-f1 opened 2 years ago

j-f1 commented 2 years ago

FrozenArrays are essentially readonly arrays in Swift.

ObservableArrays seem to have an identical API to a regular array, except that the spec can define custom behaviors when the array is modified. So I’m not sure whether we need to do anything special in Swift to handle this.