A utility function similar to `pick()` in `underscore` or `lo-dash`.