6 Awesome Tricks with the Spread and Rest Operators in Typescript and Javascript Objects
| |

6 Awesome Tricks with the Spread and Rest Operators in Typescript and Javascript Objects

Introduction You may have seen this syntax in Typescript and Javascript Projects before: if you have used React, then you have very likely encountered this syntax a couple of times when passing the props from one component to another. The support for the spread and rest operators was added since: Typescript 2.1 and onwards Javascript…

Sorting An Array of Strings in Typescript and Javascript
| |

Sorting An Array of Strings in Typescript and Javascript

Earlier, we learned how to filter an array in Typescript/Javascript. and now, we will have a quick look over Array.sort() in typescript and javascript. While what we will learn here is simple, it will be the foundation we need for our coming tutorials! Sorting Strings in Javascript / Typescript So we’d have this array: Javascript…