Tag: javascript
Object.freeze / Object.seal ES5
Object.freeze() prevents all property changes (add/modify/delete), Object.seal() prevents add/delete but allows modification — both are shallow, not deep.
2mo ago
javascript intermediate
Optional Chaining & Nullish Coalescing ES2020
?. short-circuits to undefined if a property is null/undefined; ?? returns the right-hand value only when the left is null or undefined — together they replace most null guard code.
2mo ago
javascript intermediate