underscore test

by dirkk0

JavaScript

test = ['a','bb', 'ccc']

console.log(_.contains(test, 'bb'))
console.log(_.without(test, 'bb'))

t = {'a':'aaa', 'b':'bbb'}

_.reject(t,function(el) { return el.a === 'aaa'; })