From 13699341175784be9f4aaabab9b34ff50fae7dff Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 23 May 2021 23:44:28 +0300 Subject: [PATCH] working on handling special keys... Signed-off-by: Alex A. Naanou --- diff2.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/diff2.js b/diff2.js index c77d259..ba8331f 100644 --- a/diff2.js +++ b/diff2.js @@ -73,8 +73,15 @@ module.HANDLERS = { return [[k], v] }), ] }, }, - // XXX do we need to treat array keys as a special case??? // XXX need to optionally treat special attributes... + specialKeys: { + match: function(obj){ + return false }, + handle: function(obj){ + // XXX + }, + }, + // XXX do we need to treat array keys as a special case??? keys: { match: function(obj){ return typeof(obj) == 'object' },