Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I really like this method but unfortunately most debuggers print objects with keys in alphabetical order so there’s no way to get the keys you care about most at the top. Is there a way to rectify this?


This is going to make it significantly more janky but why not just put it into a list inside the curly brackets? That should preserve order while still triggering the object debugging feature




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: