Blogger Information
Blog 47
fans 0
comment 2
visits 102733
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
JavaScript es6 根据对象某属性获得其在数组中的索引
拾一枝樱花的博客
Original
2266 people have browsed it
  1. var arr = new Array({"name": "wxx", "age": 2}, {"name": "wyw", "age": 6});
  2. var index = arr.findIndex(function(item) {
  3. return item.name === "wyw";
  4. });
  5. console.log(index);
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post