Skip to content

Commit

Permalink
add copyObject helper
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemmarsh committed May 12, 2016
1 parent 26cc134 commit 9976b6e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions utils/copyObject.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict';

function copyObject(obj) {
return JSON.parse(JSON.stringify(obj));
}

export default copyObject;

0 comments on commit 9976b6e

Please sign in to comment.