add arr.map
This commit is contained in:
parent
14dbb96102
commit
096d8af2ee
@ -33,3 +33,5 @@ someUsers = users.filter(function(item, index, array){
|
|||||||
console.log(someUsers);
|
console.log(someUsers);
|
||||||
|
|
||||||
// arr.map(fn)
|
// arr.map(fn)
|
||||||
|
let lengths = array.map(item=>item.length);
|
||||||
|
alert(lengths);
|
Loading…
Reference in New Issue
Block a user