Skip to content

Commit

Permalink
replacing object spread operator with object.assign (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-kaufman authored Mar 20, 2018
1 parent 501c07a commit 86411ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/lib/slideShow/createGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

// set up event display
const recordsString = records.reduce((accumlator, curr) => {
const obj = { ...curr };
const obj = Object.assign({}, curr);
if (obj.data) {
delete obj.data;
}
Expand Down

0 comments on commit 86411ce

Please sign in to comment.