1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00
beestat/js/beestat/clone.js
2019-10-16 20:46:41 -04:00

11 lines
238 B
JavaScript
Executable File

/**
* Performs a deep clone of a simple object.
*
* @param {Object} object The object to clone.
*
* @return {Object} The cloned object.
*/
beestat.clone = function(object) {
return JSON.parse(JSON.stringify(object));
};