Mastering JavaScript Type Detection: Techniques and Best Practices(medium.com) This guide dives deep into JavaScript type detection, demystifying how to accurately judge data types — a skill essential for coding precision and clean code. We’ll explore powerful methods, from basic typeof to the advanced instanceof, Array.isArray, and Object.prototype.toString.call. Each technique is carefully crafted to help you handle JavaScript data types efficiently and avoid common pitfalls. Here’s your toolkit for JavaScript type handling.
The big and Small of JavaScript numbers (2017)(fluffyandflakey.blog) For all its warts, JavaScript has some novelties few other languages have. In this post I want to share about JavaScript numbers, which both acknowledge normal mathematics and the fact that they are represented by an imperfect data format.
Fixed-point arithmetic as a replacement for soft floats(pigweed.dev) Fixed-point arithmetic is an alternative to floating-point arithmetic for representing fractional data values (0.5, -1.125, 10.75, etc.). Fixed-point types can be represented as scaled integers. The advantage here is many arithmetic operations (+, -, *, /, etc.) can be implemented as normal integral instructions. This can be useful for embedded systems or other applications where floating-point operations can be too expensive or not available. Clang has support for fixed-point types according to ISO TR 18037.