dotize icon indicating copy to clipboard operation
dotize copied to clipboard

wishlist

Open lifeart opened this issue 8 years ago • 12 comments

  1. Reverse method for "convert"
  2. Custom delimiter symbol eg: -,_
  3. Arrays convert config ( exclude prototypes, map array to index-like object)

lifeart avatar Dec 31 '16 19:12 lifeart

+1 for reverse method

brainysmurf avatar Apr 07 '18 07:04 brainysmurf

+1 Arrays convert config

Jank1310 avatar Apr 13 '18 14:04 Jank1310

I'm willing to start working on the reverse method. Is there a plan of attack that I should consider?

brainysmurf avatar Apr 17 '18 02:04 brainysmurf

  1. exclude/include Arrays flag

machinaeXphilip avatar Sep 19 '18 15:09 machinaeXphilip

I finally have time to work on them.

  1. Reverse method for "convert" I'm working on it.
  2. Custom delimiter symbol eg: -,_ What is this useful for?
  3. Arrays convert config ( exclude prototypes, map array to index-like object) Can you give an example?
  4. exclude/include Arrays flag Hmm, what is it for?

vardars avatar Dec 01 '18 14:12 vardars

@vardars

2.) Can't remember. 3.) { a: [1,2,3,4] } ->

{
'a.0': 1,
'a.1': 2,
'a.2': 3,
'a.3': 4
}
// 
{
'a[0]': 1,
'a[1]': 2,
'a[2]': 3,
'a[3]': 4
}
// 
{
'a[]': [1,2,3,4]
}
//
{
a: [1,2,3,4]
}

4.) Can't remember

lifeart avatar Dec 01 '18 16:12 lifeart

4.) just realized, I meant the same as @lifeart but did not see there could be more than two options. so kill 4) it's already included in 3.)

machinaeXphilip avatar Dec 02 '18 17:12 machinaeXphilip

I'm willing to start working on the reverse method. Is there a plan of attack that I should consider?

There is a branch for it. I'm not comfortable about the way I use. Maybe we can "attack" with different angle?

vardars avatar Dec 03 '18 19:12 vardars

  1. Reverse method for "convert" is done with release 0.3.0 :)

vardars avatar Jan 28 '19 19:01 vardars

for 3.) maybe useful: my dirty fix for my personal use case:

https://gist.github.com/machinaeXphilip/7796b362f8fe0310aa31bd0df85ca95a

disclaimer: i did not spent a lot of time thinking here, but merely blindly modded and commented out, so there will be a lot of issues with it.

machinaeXphilip avatar Apr 01 '19 09:04 machinaeXphilip

edited the gist linked above to match dotized 0.3.0 and made edit comments less aggressive.

convert() does { a: [1,2,3,4] } -> { a: [1,2,3,4] } and seems to work out of the box with backward()

machinaeXphilip avatar Apr 05 '19 06:04 machinaeXphilip

convert() does { a: [1,2,3,4] } -> { a: [1,2,3,4] }

This worked like a charm for Cloud Firestore updates, thank you!

lalo-clicky avatar Jul 11 '19 02:07 lalo-clicky