Si Thu
0
Q:

array map arrow function

const exampleArray = ['aa','bbc','ccdd'];
console.log(exampleArray.map(a => a.length));
//Would print out [2,3,4]
3
materials.map((str) => {
  const {length} = str;
  return length;
});
1

New to Communities?

Join the community