SortedArray in JavaScript?

Forbes Lindesay forbes at lindesay.co.uk
Sat Aug 10 03:19:02 PDT 2013


I can see the use of a sortedArray with get, set, indexOf, push, pop, shift and unshift.

I doubt you want to let it be indexed using `[]` and I see little reason why it would need to be built into the language.  It would make far more sense as a nice little library, which creates a much smaller maintenance burden.


More information about the es-discuss mailing list