Undocumented  function? How about using lodash or just doing plain copy?