Array.prototype.map

Easy
·
45 minutes

Submit a solution

Connect your GitHub account to submit a solution

Community solutions

Array.prototype.map

Custom Map function

Chris Vasquez
Chrvasq • 1 month ago

Array.prototype.map

Implemented with React

Maduabuchi Chibuike
Chibuike-web • 2 months ago

Array map function

Simple map function.

Veronika Ivhed
lindviveronika • 3 months ago

Polyfill for Map

Polyfill for Map

Mohit Pandey
mohit825 • 3 months ago

Array.prototype.map

NA

Shivani Sachdeva
shivani-sachdeva • 4 months ago

Vanilla JS Solution

Array Map solution

Nikhil Pathak
nikpathak9 • 4 months ago

my costum map

simple map with good validation

Roee Angel
roee030 • 5 months ago

JS map function

JS map function

Mehak
MehakB7 • 6 months ago

Vanilla JS Solution

Vanilla JS Solution to the challenge + bonus challenge.

Kinson Lau
klaunz • 6 months ago

custom Js map using vanilla JS

Used vanilla JS

Holmes
HumbleHolmes • 7 months ago

map implementation

used a for loop to traverse through the array, put the array elements in the callback. return the value in an array

Shashank Singh
shashank08090 • 7 months ago

Custom Map function

This is a map function which takes two arguments, array and a callback and returns the new array.

Ankur Gupta
ankur-gpta • 7 months ago

map polyfill

map polyfill using reduce hof

Prashant Kumar
Pk9697 • 8 months ago

Vanilla JS custom map()

custom map function

Isidora Trickovic
Is1d0r4 • 8 months ago

Array Prototype

The was easy just used map inside the function

Siddhesh Dhobale
SiddheshDhobale • 9 months ago

Array.prototype.map

custom map

sashwat tomar
sashwattomar • 9 months ago

Array.Protoype.map

I have written the polly fill for map function of javascript

Bhargavi
bhargavi-singh • 9 months ago

Array.prototype.map

Create a polyfill of map method in array

Hemant Jha
hemantgitt • 9 months ago

Array.prototype.map - Vanilla JS template

Create a custom map function for arrays

Akshaya J
phoenix-flyhigh • 9 months ago

An easy solution using for of

An easy solution using for of

Alper
insanicly • 10 months ago

Array's map function prototype

in the map function, pass an array and a callback and it will return mapped elements

Devendra Kumar Verma
devendra1102 • 10 months ago

Array.Prototype.map

Array.prototype.map

Kandepi Bhavani
KandepiBhavani23 • 11 months ago

Array.prototype.map

Array.prototype.map

Aman kumar
amankumar322nit • 1 year ago

React Solution

Solution for the question + the challenges

Joshua Thomas Paul
JoshTPaul • 1 year ago

Array.prototype.map

Polyfill for Map

Lakshmi
lakshmi0605 • 1 year ago

Array map polyfill

Make a polyfill of a map

Awais alwaisy
awaisalwaisy • 1 year ago

Array.prototype.map with for loop

This is my answer

Theodore Andrew
theodoreandrew • 1 year ago

my map using for...of

very simple - do not see why this was given an estimate of 45 minutes

Emilio da Costa
emiliodacosta • 1 year ago

MISS

map function

kate56ncl
kkate56ncl • 1 year ago

BareBones Map function

The function loops through the array and Capitalizes all the words in the array with the callback function

Rodney Duncan
rodneyduncan • 1 year ago

BareBones Map function

The function loops through the array and Capitalizes all the words in the array with the callback function

Rodney Duncan
rodneyduncan • 1 year ago

own mapArray function

i used a for loop and use callback function inside of

ajay chandel
ajaychandel730 • 2 years ago

Array prototype for map

myMap prototype created

Saniya Suhail
saniyasuhail • 2 years ago

Array.prototype.map - Vanilla JS template

array's map polyfill

Somyanath Mohanty
somyanath • 2 years ago

array map function

array map function

Prajuwal Singh
Prajuwal • 2 years ago

Array.prototype.map

Straightforward implementation of Array.prototype.map function

Jason Yeung
jsonyeung • 2 years ago

Array.prototype.map

Simple straight forward solution

Uddipta Gogoi
uddiptagogoi2000 • 2 years ago

Array.prototype.map

Map function

Uddipta Gogoi
uddiptagogoi2000 • 2 years ago

Cleanest javascript solution

Easiest one

Chirag Dogra
ChiragDogra • 2 years ago

Array.prototype.myMap

Cleanest solution

Chirag Dogra
ChiragDogra • 2 years ago

Array.prototype.map functionality via a custom prototype method and a normal function with array and callback function as parameters

Implementing Array.prototype.map functionality in 2 different ways.

nanyamshukla • 2 years ago

javascript solution

simple solution

Angela
angelawonggggg • 2 years ago

Array.prototype.map

Polyfill for Array.prototype.map

siemen_subbaiah
siemen-subbaiah • 2 years ago

Array.prototype.map

Array.prototype.map

karen
vkaren • 2 years ago

Some array methods implementation

Implementation using for loop

Mohamed M. Hagras
mohagras903 • 3 years ago

map polyfill (Array.prototype.map)

created map polyfill using for loop

Harshita Gupta
HarshitaGupta16 • 3 years ago

Simple map polyfill in JS

Simple map polyfill in JS

Shaikh Imran
imran-mind • 3 years ago

Array.prototype.map

Array.prototype.map using forEach loop

Anjali Asha Jacob
anjaliasha123 • 3 years ago

Implementation of map,some and filter

I have used for loop for raw implementation of these functions but i think i could have used reduce as well.

Ranjeet Kumar
Ranjeetk489 • 3 years ago

vanilla js solution with overloading

https://codepen.io/kanarian/pen/ZEoeBoo

Arian Joyandeh
kanarian • 3 years ago

Array.prototype.map, .forEach, .every, .some - Vanilla JS by AlishaSo

Contains the solution to the original problem (create your own version of the map function), with the additional challenge of passing the index to the callback function. Also includes the extra challenge of recreating the forEach, every and some functions.

Alisha S.
AlishaSo • 3 years ago

Array.prototype.map

Polyfill for the map method of java

Mehul Satardekar
mehulsatardekar • 3 years ago

Self-explanatory solution using forEach

Self-explanatory solution using forEach

Gautam Mankatti
acegautam • 3 years ago

easy js solution

used a foreach loop

Chris
IntrinsicInnovation • 3 years ago

Vanilla JavaScript

Used a forEach() loop

cxs7700
cxs7700 • 3 years ago

Array.prototype.map

The custom map called mapOwn With challenge 1

sadhika yezzu
sadhikay • 3 years ago

VanillaJS map

custom map

Tuheen
TojhaDeveloper • 3 years ago

Array Map + Array.prototype.map - Vanilla JS template

Includes challenge question

Nat
nzolotar • 3 years ago

Simple solution

NA

thecashewtrader
thecashewtrader • 3 years ago

Map in Vanilla JS

Works with array and index in the callback

Nicole
nxgrizzle • 3 years ago

Map

Vanilla JS

Umut Toker
utoker • 3 years ago

Custom map

Custom map

Hemant Nigam
hemantnigam • 3 years ago

Array.prototype.map clone

map clone

Kiran Pillai
kiran-pillai • 3 years ago

Vanilla JS map

A simple Array.prototype.map implementation

Dipanshu Singh
iamdipanshusingh • 3 years ago

Array.prototype.map

Vanilla JS solution

George Cavazos
cavazosgeorge • 3 years ago

Array.prototype.map - Vanilla JS template

Array.prototype.map - Vanilla JS template

Pankaj Dagar
pankajdagar • 3 years ago

Custom map implementation

Implementing map function without Array.prototype.map

Nabanita Sarkar
nabanita-sarkar • 3 years ago

Map Implementation

Implementing map function without Array.prototype.map

Nabanita Sarkar
nabanita-sarkar • 3 years ago

Array.prototype.map

Pass in an array and a callback to map the array. Error handled by argument type checking

matteo1222 • 3 years ago

Javascript solution

Simple solution with item and index in map.

Matt
matthewfee • 3 years ago

Array.prototype.map

Create a custom Array.prototype.map

HYEWON JOO
joo7875 • 3 years ago

Array.prototype.map

Implement map method for array

Xin Chen
xchen1778 • 3 years ago

Array map function

Custom array map implementation

Akhlesh
akhlesh • 3 years ago
Get future questions delivered straight to your inbox for free

Sign up and receive instant access to new questions when we publish them.

We‘ll only use your information to deliver new questions and to provide you updates about our product. We‘ll never spam you or sell your information without your consent. Unsubscribe at any time.