Commit d5dd5494 authored by Tristan Cavelier's avatar Tristan Cavelier

Add "clone" method to jiotests.js

parent fdb950be
......@@ -18,6 +18,9 @@ contains = function (array,content) {
}
return false;
},
clone = function (obj) {
return JSON.parse(JSON.stringify(obj));
},
// localStorage wrapper
localstorage = {
clear: function () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment