add arr.map

This commit is contained in:
mhrooz 2024-06-16 21:03:42 +02:00
parent 14dbb96102
commit 096d8af2ee

View File

@ -33,3 +33,5 @@ someUsers = users.filter(function(item, index, array){
console.log(someUsers);
// arr.map(fn)
let lengths = array.map(item=>item.length);
alert(lengths);