question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make `array-key` values toggleable

See original GitHub issue

Currently arrays are displayed with an array-key value, it would be great if this were something that could be toggled on and off via a prop so that we could display arrays as:

[
   "one", 
   "two",
   "three"
]

Instead of:

[
   0: "one", 
   1: "two",
   2: "three"
]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
imdanielspcommented, Apr 4, 2020

@mac-s-g Assuming this hasn’t been resolved, I would like to make this change. I will send a PR soon. Are you willing to make another release if the change make sense?

1reaction
isaacgrcommented, Apr 14, 2020

Hoping this gets merged, as it would really clean up the data being displayed. Love the component!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to toggle array values by their property value
For example having the following array I would like to toggle (button) all values that have property named a and/or b etc on...
Read more >
How to toggle an item in a javascript array - DEV Community ‍ ‍
So the idea here is having a function called toggle that we can call to redefine our array variable. Schema. The caller is...
Read more >
How do I bind Toggle to an item in an array with ForEach?
I've got an array of BookItems, that I want to show in a List. Every item has the option to enable it with...
Read more >
How to create key value array in javascript - LearnersBucket
Learn how to create a key value array in javascript. Use objects to create an associative array or use es6 map data structures....
Read more >
Array.prototype.keys() - JavaScript - MDN Web Docs
The keys() method returns a new Array Iterator object that contains the keys for each index in the array.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found