ikemonn's blog

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

2015-11-07から1日間の記事一覧

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

jashkenas/underscoreの_.intersectionを読んだ。 概要 _.intersection(*arrays) 第一引数の配列の各値の中で、第二引数以降のすべての配列に含まれている値を返す。 var x = _.intersection([1, 10, 10, 3], [3 ,190, 10], [1, 545, 3, 10]); console.log(x…