Cloning - Others

C#

var serialized = JsonConvert.SerializeObject(source);
return JsonConvert.DeserializeObject<T>(serialized);

JS

JSON.parse(JSON.stringify(original));

💎 Ruby

Marshal.load(Marshal.dump(@object))