I think the map() + pick() approach is your best bet. You could compose the callback instead of creating an inline function however:
_.map(columns, _.partialRight(_.pick, 'key'));
I think the map() + pick() approach is your best bet. You could compose the callback instead of creating an inline function however:
_.map(columns, _.partialRight(_.pick, 'key'));