Stop using Array.forEach for everything! “for/of”, USE IT!

For some time I’ve been bothered by how people are introducing all sorts of unnecessary headaches in their code with Array.forEach. This has only been exacerbated through anonymous functions, particularly the painfully cryptic and oft outright stupid and pointless “Arrow Functions”. I’m seeing code all the time now where scoping issues, code clarity, and a host of other problems are all…

--

--

--

Accessibility and Efficiency Consultant, Web Developer, Musician, and just general pain in the arse

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Using local cache data when offline with Ionic Storage and Angular

ParcelJS: How simple really is it?

Componentize SVGs in Angular and style them on the fly

Epic Games Store UI — MaterialUI, ReactJS, TypeScript, NestJS — Game Form Component #15

How to Make Your First React Native App

Build your own Mailing API using Nodemailer, Gmail, and Google OAuth2

How to create a neverthink splash screen clone using a bit of React

My Three Sons

Bicycle illustration

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jason Knight

Jason Knight

Accessibility and Efficiency Consultant, Web Developer, Musician, and just general pain in the arse

More from Medium

Pay Attention To What JS Methods Return!

The Fundamentals of TypeScript, in Increasing Levels of Difficulty

Microsoft proposes bringing TypeScript-like type syntax to JavaScript

Introducing CWCO — The Only Web Components Solution You Need