docs: function pick(obj, props) {
      props = to_1.toArray(props, []);
      if (!is_1.isValue(obj) || !is_1.isObject(obj) || !props || !props.length)
          return obj;
      return props.reduce(function (a, c) {
          var val = get(obj, c, undefined);
          if (is_1.isUndefined(val))
              return a;
          return set(a, c, val);
      }, {});
  }