JavaScript Map and WeakMapIn JavaScript, Map is a built-in object that provides an easy way to store and manipulate data in key/value pairs. Map vs. Object The main difference between a Map and an Object in JavaScript is the type of their keys, as well as how they store and m...Apr 13, 2023·5 min read
Zod: Schema Declaration and Validation in TypeScriptZod is a TypeScript-first schema declaration and validation library. Zod tries to address TypeScript blindspot. TypeScript only does static type checking at compile time and doesn’t have any runtime checks at all. Zod lets us work around this by chec...Mar 7, 2023·6 min read
MathML: Write Math Like HTMLMathML or Mathematics Markup Language is used to write mathematical formulas such as functions, fractions, scripts, radicals, matrices, integrals, series, etc. It is based on XML and generally embedded in HTML documents. Syntax MathML uses the same s...Mar 2, 2023·1 min read
3 Helpful NPM CLI CommandsNPM is the world's largest software repository. It is the package manager for the node.js platform. NPM has a powerful CLI that developers use to adapt packages to code, download standalone tools, run packages without downloading them using npx, and ...Mar 1, 2023·2 min read
SWC: Rust-based JavaScript and TypeScript Compiler and BundlerSWC is a fast and efficient compiler and bundler written in Rust. SWC can be used for minification, bundling, compiling and more. It is similar to Babel but faster and more efficient. According to its website, SWC is 20x faster than babel. SWC is use...Feb 21, 2023·1 min read
CSS Trigonometric Functions: An IntroductionTrigonometry can be intimidating but it gives developers superpowers when it comes to creative coding. CSS has trigonometric functions that help you create more complex styles for your website or application. Overview CSS trigonometric functions are:...Jan 18, 2023·1 min read
How to clone anything in JavaScriptThe global structuredClone() can be used to create a deep copy of a given value. Example In this example, we clone an object. After cloning, changes to each object do not affect the other object. const fruits = { citrus: ["orange", "grapefruit", "l...Jan 5, 2023·1 min read