Any plans for implementing Symbol.iterator support? #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
WIth modern linters, especially with TypeScript code, (e.g. the
unicorn/recommendedrules), I've noticed it trying to replace my.forEachloops for afor (const item of orderedMapObject)which breaks my code.Any reason to not implement support for the
Symbol.iteratormethod so that usingfor()loops will work smoothly with this library?If this is accepted, I don't PR-ing a fix for this.
A lint that makes baseless assumptions about objects and breaks code sounds like a pretty bad lint.
I don't think iterating over these is an important enough thing to add another method for it, and I don't want to make the library depend on
Symbolat this point.I agree ☝️
Fair enough. I'll scratch this change.