digitallinguistics / javascript

A JavaScript library for working with linguistic data in DLx format
https://developer.digitallinguistics.io/javascript
MIT License
2 stars 0 forks source link

Model.defineArrayProp #144

Closed dwhieb closed 4 years ago

dwhieb commented 4 years ago

Add the Model.defineArrayProp() utility method, which defines an array property on an object where each item in the array is expected to be an instance of a particular class/model. When the user sets this property to a new array, each item in the array is transformed into an instance of the provided class/model.

dwhieb commented 4 years ago

[javascript] Model.defineArrayProp