-
Notifications
You must be signed in to change notification settings - Fork 71
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
Display iterables as arrays (if “pure”) #20
Comments
To clarify here: For native types - Set, Map, Array - switching to treating everything as just an 'iterable' wouldn't constitute much of an improvement. A But for new types that implement Symbol.iterator, this would be a nice convenience - this will make debugging |
Moved to observablehq/inspector#13. |
If a value is iterable (implements [Symbol.iterator] method), and the resulting iterator is a different object than the value (so as to avoid mutating common map and Set iterators that
return this
), we should display it in the inspector like an array.The text was updated successfully, but these errors were encountered: