Subscribe to masimplo.com

Stay up to date! Get all the latest & greatest posts delivered straight to your inbox

Javascript

JS runtimes, APIs, and language features.

Manage model collections in JavaScript without leaking Array cover image
Javascript,  Code

Manage model collections in JavaScript without leaking Array

Expose a raw array, wrap mutations in methods, or extend Array — three patterns for typed collections that block duplicates and invalid data.