Skip to content
loading...

Let's create our own filter method in JS

machy44 on February 26, 2018

JS is a prototype-based language which means that if we create an array variable, it's prototype is Array.prototype. Every array inherits the met... [Read Full]
markdown guide
 

Cool! It's funny, I was just inspired to write my first post about a 'lazy' version of 'map' and 'filter' in JavaScript!

 

That's great! :) It seems very interesting. I will take a look on your post.

 
 

Why do you have (this[i], i, this) in the if statement? dont you only need this[i]?

code of conduct - report abuse