mirror of
https://github.com/flynx/serialize.js.git
synced 2026-07-10 11:10:57 +00:00
tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
aea2cbe539
commit
840046c1d9
25
serialize.js
25
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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user