From e5eaee066d2781884a28cc6c23ccf7545d1f5302 Mon Sep 17 00:00:00 2001
From: Jake Read <jake.read@cba.mit.edu>
Date: Fri, 25 Oct 2019 16:39:27 -0400
Subject: [PATCH] object type
---
typeset.js | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/typeset.js b/typeset.js
index 5db3352..3c174cf 100644
--- a/typeset.js
+++ b/typeset.js
@@ -480,6 +480,14 @@ const TSET = [
}
}
},
+ {
+ name: 'object',
+ copy: {
+ object: function(obj){
+ return JSON.parse(JSON.stringify(obj))
+ }
+ }
+ },
{ // cuttlefish only, so no key, read or write fn's
// this is : https://developer.mozilla.org/en-US/docs/Web/API/ImageData
name: 'ImageData',
--
GitLab