-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide array index #490
Comments
There is a Things we can do to achieve what you want:
|
Another solution would be adding |
Thank you. Second question - is possible to show commas after values? (::after selector is not solution, because you cant copy it) |
Comma... I think this one can be added to the package. Can you submit another request for it? |
#496 has added support for hiding arbitrary index/key. I will prepare a demo after it gets released. |
released 3.5.0 with this feature. Let me prepare the demo this week. |
This took me a while to figure out. Future self, to stop this component from adding index numbers before all array items, do this:
and then
|
This is how it was done in the example above const KeyRenderer = () => {
return null;
};
KeyRenderer.when = ({ path }) => {
/**
* check if the key is a number.
*
* This can be wrong in some edge cases like Map.
*/
return typeof path[path.length - 1] === 'number';
}; |
Hello, is there a way, how to hide array index numbers? Just show array items without 1, 2, 3... indexesM
The text was updated successfully, but these errors were encountered: