From 840046c1d91bd17974df57941bd8a919cbfdee8b Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 4 Jan 2026 05:30:34 +0300 Subject: [PATCH] tweaks... Signed-off-by: Alex A. Naanou --- serialize.js | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/serialize.js b/serialize.js index 7ad7449..33dff4c 100644 --- a/serialize.js +++ b/serialize.js @@ -14,12 +14,25 @@ * indexes)... * a different path format would suit both tasks and make things more * universal: -* [1, 'a', ['map', 5, 0], ['set', 3]] -* \ \ +---------+-+ +------+-+ -* \ \ \ +------ Set index -* \ \ +----------------- Map index -* \ +------------------------------ Objecct index (string) -* +--------------------------------- Array index (number) +* Current: +* [1, 'a', 5, 0, 3] +* \ \ +-++ +---------------- Set index (from context) +* \ \ +------------------- Map index (from context) +* \ +------------------------ Object key (string) +* +--------------------------- Array index (from context) +* Proposed: +* [1, 'a', ['map', 5, 0], ['set', 3]] +* \ \ +---------+-+ +------+-+ +* \ \ \ +--- Set index +* \ \ +-------------- Map index +* \ +--------------------------- Object key (string) +* +------------------------------ Array index (number) +* And/or: +* [1, ['object', 3], ['map', 5, 0], ['set', 3]] +* +---------+-+ +* +----- Object attr index +* +* * **********************************************************************/ ((typeof define)[0]=='u'?function(f){module.exports=f(require)}:define)