JavaScript Collections API?

后端 未结 6 862
再見小時候
再見小時候 2021-02-15 12:20

I\'ve searched quite a while for a Collections API (list, set) for JS and surprisingly I could only this: http://www.coffeeblack.org/work/jscollections/

This is exactly

6条回答
  •  旧巷少年郎
    2021-02-15 13:15

    Since javascript have both arrays [] and associative arrays {}, most needs for datstructures are already solved. The array solves the ordered list, fast access by numeric index whilst the associative array can be considered a unordered hashmap and solves the fast access by string keys.

    For me that covers 95% of my data structure needs.

提交回复
热议问题