firefields.comRemove Items From An Array In JavascriptWhen you know the index If we know the index of the item we want to remove we can perform a simple splice function removeAtIndex(arr, idx) { arr.splice(idx, 1); } let nums = [1,2,3,4]; removeAtIndex(nums, 2); // nums = [1,2,4] Explanation: .splic...Sep 6, 2022·3 min read
firefields.comTidying Your Tailwind ClassesLove 'em or hate 'em, CSS utility frameworks are here to stay. Me, I think Tailwind CSS is awesome. Which is lucky because it's been used on everything I've worked on for the last three years. It now sounds strange if someone says they aren't using i...Sep 2, 2022·3 min read
firefields.com8 Reasons To Use Typescript1. It's Really Popular Typescript is created and maintained by Microsoft, well documented and is becoming really popular. Although it's relatively new it's become one of the most in-demand programming languages. Not as much as Javascript, but consid...Jun 10, 2022·5 min read
firefields.comDebug Directly In WebstormWhy Not Just Use Chrome Dev Tools? The Chrome Developer Tools are great. Amazing even. But there are some advantages to debugging directly in your IDE, like being able to see the value of each variable exactly in the code you're editing. Or getting ...Jun 10, 2022·2 min read
firefields.comType Checking React with PropTypesPropTypes Are Just A Poor Mans Typescript Aren't They? With the increasing popularity of Typescript, you might be wondering. Why would I need another way to check types? But React PropTypes are different in one distinct way. PropTypes check the type...Jun 6, 2022·4 min read