Skip to content

Instantly share code, notes, and snippets.

@dyackson
Last active February 17, 2019 23:17
Show Gist options
  • Save dyackson/47752cef48bd2c2883e8b65a02bcb274 to your computer and use it in GitHub Desktop.
Save dyackson/47752cef48bd2c2883e8b65a02bcb274 to your computer and use it in GitHub Desktop.
Initial 2-param function
function getOrderCopyWithItems(items, order) {
return {
...order,
items: [...order.items, ...items],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment