mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -04:00
11 lines
238 B
JavaScript
Executable File
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));
|
|
};
|