lodash
has the pick function which is used as follows:
var object = { 'a': 1, 'b': '2', 'c': 3 };
_.pick(object, ['a', 'c']);
// => { 'a': 1, 'c': 3 }
I would like to write a type-safe version of this in typescript.
Usage of this function should be
pick(object, "a", "b")
The goal is to conserve type safety.
Is this possible to achieve?