How to Destructure Props in Vue (Composition API)Posted January 11, 2023vuevue compositionpropsreactivityStart discussionHow to correctly destructure props object in a Vue component while maintaining the reactivity. Continue reading ➞
Triangulation in Test-Driven DevelopmentPosted October 4, 2022test-driven developmentunit testStart discussionHow to use triangulation technique to guide the creation of generic code in test-driven development. Continue reading ➞
How to Use nextTick() in VueUpdated March 26, 2023vuedomStart discussionnextTick(callback) executes the callback when the DOM has been updated. Continue reading ➞
Programming to Interface Vs to ImplementationPosted January 24, 2022software designinterfacetypescriptStart discussionHow programming to an interface can make your application easier to change in the future. Continue reading ➞
A Smarter JavaScript Mapper: array.flatMap()Posted December 31, 2021javascriptarrayStart discussionarray.flatMap() is a method on the array that let's you map elements a littler smarter. Continue reading ➞
Array Grouping in JavaScript: Object.groupBy()Updated January 28, 2023javascriptarrayStart discussionObject.groupBy() and Object.groupByToMap() methods let you group an array by certain criteria. Continue reading ➞
How to Access ES Module Metadata using import.metaPosted December 12, 2021javascriptmoduleurlStart discussionHow to access the meta information (module URL, etc.) of an ES module in JavaScript. Continue reading ➞
JSON Modules in JavaScriptPosted December 3, 2021javascriptjsonmoduleStart discussionHow to import JSON data directly into an ES module. Continue reading ➞
How to Trim Strings in JavaScriptPosted November 25, 2021javascriptstringwhitespaceStart discussionHow to trim (aka remove whitespaces and line terminators) from strings in JavaScript. Continue reading ➞
TypeScript Function OverloadingUpdated March 21, 2023typescriptfunctionStart discussionFunction overloading in TypeScript lets you define functions that can be called in multiple ways. Continue reading ➞