You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JSON syntax doesn't really support sparse array.
I think this package is designed to format JSON arrays not JS,
but anyway, it's easy to replace the empty slots in a sparse array, for example:
case:
format([,3.14,6,,98])
result:
"return {\n\n 3.14,\n 6,\n\n 98,\n}"
should be:
"return {\n nil,\n 3.14,\n 6,\n nil,\n 98,\n}"
The text was updated successfully, but these errors were encountered: