Is there a library for a Set data type in Javascript?

前端 未结 6 1533
迷失自我
迷失自我 2020-12-09 09:28

Since Javascript doesn\'t have a built in set datatype has anyone come across a decent library for sets and set operations like union, intersection, etc?

6条回答
  •  心在旅途
    2020-12-09 10:14

    If you just want to have access to simple union, intersection functions, you could also try Underscore.js's built-in Array functions. It also provides a lot of more useful utilities for data manipulation, so try it if you haven't.

提交回复
热议问题