Message from JavaScript discussions

May 2017

— Yes, or deduce that information somehow


At add-time you would not neccesarily know that index 9 is an "R", unless you maintain some data structure which you can deduce as having a property of "R" via analysis

— But a Map may be better than an array

— Heh, trying to NOT use the existing implementations though

— Well

— A Map maintains unique entries

— So you would not have to check for uniqueness yourself

— As does a Set

— Native JS Map is slow I think

— Might be, dunno

— It may very well perform the same operations of checking per-set

— How do you efficiently loop through arrays