v-show vs v-if: Conditional Rendering in Vuev-if and v-show are two ways to conditionally render content in Vue. Both are built to conditionally render content in Vue, but in slightly different ways - which can be quite confusing. Let's take a look at how they work, and when you would use each...Feb 6, 2023 · 3 min readfjolt.hashnode.dev
Checking if a value is a number in Javascript with isNaN()In Javascript, we have numerous ways to check if something is or is not a number. This is a particularly common task in Javascript, where there is dynamic typing, resulting in some unexpected things being classified as numbers. Typescript fixes some ...Feb 5, 2023 · 5 min readfjolt.hashnode.dev
Javascript Arrays - How to Remove Duplicate ElementsJavascript arrays can contain duplicates - which is fine most of the time, but can sometimes cause some issues. For example, if an array is supposed to only contain unique user IDs, but is taken from a data source which may contain duplicates: let us...Feb 4, 2023 · 2 min readfjolt.hashnode.dev
Javascript ArraysArrays in Javascript are a simple, one dimensional way to store simple sets of data. Arrays are non unique, which means they can store duplicates (unlike sets). They also follow typical prototype inheritance, as with other Javascript types. That just...Feb 4, 2023 · 5 min readfjolt.hashnode.dev
Javascript toLowerCase() - Convert Strings to Lowercasea String is a type of data in Javascript, and as with any other type of data, Strings have prototypes and therefore inherit standard methods. One of these methods is toLowerCase(), which you'll often see written as String.prototype.toLowercase(). Thi...Feb 4, 2023 · 1 min readfjolt.hashnode.dev