JavascriptSection

This section will contain Javascript related tips, tricks and snippets

Update Object in Array Without Mutation in Javascript

snippets
tips

To update an object property inside an array we will be using javascript higher-order map method, which returns a new array and doesn't mutate the original array.

Remove Falsy Values from Javascript Object with Object.assign() method

snippets
tips

Sometimes we get data from a database that has some values that is undefined, null, or empty. I prefer using javascript Object.assign() method to eliminate falsy values.