Cover image

Cloning an Array with JavaScript: Part 2

I wrote a post about cloning arrays, and a piece of code I had found in a code base I was working on. After writing that post, a couple of readers brought some alternative methods, and concerns to my attention. That is what I will cover in this post...

Link
Cover image

Cloning an Array with JavaScript

Earlier today I was perusing a code base that I am working in, and found a function named cloneArray. This function looked something like this...

Link
Cover image

Learning JavaScript with Project Euler #3

The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143...

Link
Cover image

Dynamically Rendering React Components with Array.Map

If you have run in to a situation where you need to dynamically render a component for each item in a list of items, you have no idea where to start, and don't know what `Array.map()` does, keep reading...

Link
Cover image

Learning JavaScript with Project Euler #2

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be...

Link