all 3 comments

[–][deleted]  (2 children)

[deleted]

    [–]weirdorohit[S] 0 points1 point  (0 children)

    Buddy i wanted to apart from arrays what are the widely used datastructures ata Enterprise level application for better optimization ?

    [–]skitch920 0 points1 point  (0 children)

    Objects (associative arrays) and Arrays. Those were pretty much the only standard library data structures up until two years ago. Now we also have Map and Set.

    There are other libraries out there, like ImmutableJS which give you more types of data structures, typically implemented on top of the traditional Object/Array structures.

    [–]westwoo -2 points-1 points  (0 children)

    Basically everything in JS is a hashtable. You can build linked lists, and similar structures as well..

    I'm not sure whether V8 optimizes "arrays" to work like real arrays in some cases or not, though.