Tag Archives: Compare

How To Actually Compare Things In JavaScript (Testing & Comparison Operations) – JavaScript Dev Feed

How To Actually Compare Things In JavaScript (Testing & Comparison Operations) Ever get stuck wondering if you need… a == b or a === b or isLooselyEqual(a, b) or isStrictlyEqual(a, b) I know I sure have. Testing and Comparison Operations – the actual definitions. This is content pulled directly from ECMAscript specifications(Not written by me)….

Read More

How to Compare Arrays in JavaScript Efficiently – Developers Feed

How to Compare Arrays in JavaScript Efficiently In this article, I’m going to show you two ways of solving a typical interview-style question. The first solution is more obvious and less efficient. The second solution introduces a great problem-solving tool: frequency counter objects, which greatly improves the efficiency. Here’s what you’ll gain from reading this…

Read More