tjmehta / 101

A modern JS utility library
MIT License
1.55k stars 75 forks source link

pick: use `"key" in obj` instead of exists #127

Closed tjmehta closed 8 years ago

tjmehta commented 8 years ago
const obj = {
  foo: undefined,
  bar: false,
  qux: true
}

pick(obj, ['foo', 'bar', 'yolo'])
/*
{
  bar: false
}
should return:
{
  foo: undefined,
  bar: false
}
*/
tjmehta commented 8 years ago

fixed 101@1.3.1