sync-server
Version:
A simple server which can be used to synchronize data from Dexie.Syncable and an ISyncProtocol implementation and write them into files
14 lines (11 loc) • 318 B
JavaScript
;
/*
* License:
* The contents of this file were copied from
* https://github.com/dfahlander/Dexie.js/blob/master/samples/remote-sync/websocket/WebSocketSyncServer.js
* and are under the Apache 2 License.
*
*/
module.exports = function deepClone(obj) {
return JSON.parse(JSON.stringify(obj));
};