Skip to content

What is the reason behind not generating spacing values in order? #2637

Answered by adamwathan
sezeregrek asked this question in Help
Discussion options

You must be logged in to vote

This is just a JS quirk, numeric keys always come first in objects when you loop over the keys. “0.5” is considered a string so it is grouped with “px”, but the integers are all hoisted to the top.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@sezeregrek
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by sezeregrek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants