Skip to content

Instantly share code, notes, and snippets.

@reharik
Last active December 9, 2015 03:43
Show Gist options
  • Select an option

  • Save reharik/d4b1c9d3d5d72a08f3d2 to your computer and use it in GitHub Desktop.

Select an option

Save reharik/d4b1c9d3d5d72a08f3d2 to your computer and use it in GitHub Desktop.
var result = R.concat(renames.map(x=> {
var clone = R.clone(dependencies.find(d=>d.name == x.name));
clone.name = x.newName;
return clone;
}), dependencies);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment