Articles in this series
Basic implementation of map, filter & reduce methods from scratch. · map A method that runs the provided function on every item of an array and returns a...
Basic implementation of indexOf & lastIndexOf methods from scratch. · indexOf Returns first index of the found element otherwise...
Basic implementation of JS some and every method. · some Returns true if at least the callback function returns true otherwise...
Basic implementation of find() & findLast() JS array methods. · find Returns the first element that satisfies the testing function otherwise returns...
findIndex Returns the index of the element that returns true on a callback function. Array.prototype._findIndex = function(cbFunction) { for(let i...
includes Return true if the item is in the array otherwise, return false. Array.prototype._includes = function(value, fromIndex = 0) { for(let i =...