ikemonn's blog

技術ネタをちょこちょこと

2015-10-19から1日間の記事一覧

【Underscore.js】_.whereを読んだ

jashkenas/underscoreの_.whereを読んだ。 概要 _.where(list, properties) propertiesで与えられたkey-valueが含まれるすべての要素をlistの中から取得する。 var list = [ {age: 20, sex: "male", country: "JP", name: "hoge"}, {age: 22, sex: "male", c…