You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.
* @returns - a new copy of the original input with a different reference
*
* This recursive function is made for cloning arrays in a deep manner since javascript doesn't have a way to do it. All common ways to copy is shallow and that
* causes a lot of issues for functions that modify the input or a reference to the input
*/
function deep_copy(items) {
*import math:is_number
// wrong argument number
if (arguments.length === 0) {
throw new Error('Exception occurred in deep_copy - no argument given');
}
else if (arguments.length > 1) {
throw new Error('Exception occurred in deep_copy - wrong argument number');