Provides utilities for working with collections of structured data.
Simplifies and standardizes support for common UI and business logic
surrounding data collections. You can easily extend functionality by
combining existing wrappers or by writing your own.
exportasyncfunctiongetReports(user) { constrequest = createRequest(getUserReports, { user }); constresponse = awaitfetch(request); constreportList = models.collection(...response.data); // order reports newest first and then by name returnmodels.utils.withOrdering(reportList, ['date', 'name'], ['desc', 'asc']); }
Provides utilities for working with collections of structured data. Simplifies and standardizes support for common UI and business logic surrounding data collections. You can easily extend functionality by combining existing wrappers or by writing your own.