findWhere
_.findWhere(list, properties)
遍历整个 list,返回 matches(匹配) properties 参数所列出的所有 键 - 值 对的第一个值。
如果没有找到匹配的属性,或者 list 是空的,那么将返回 undefined。
_.findWhere(list, properties)
遍历整个 list,返回 matches(匹配) properties 参数所列出的所有 键 - 值 对的第一个值。
如果没有找到匹配的属性,或者 list 是空的,那么将返回 undefined。