代码拉取完成,页面将自动刷新
A JavaScript Data Structure Library
Buckets is a complete, fully tested and documented data structure library written in pure JavaScript.
Buckets also includes several functions for manipulating arrays.
If it supports JavaScript, it probably supports buckets.
Download directly
Then, add it as a script tag to your page:
<script src="buckets.js"></script>
<script>
var aSet = new buckets.Set();
</script>
Or install bucketsjs
using bower
bower install bucketsjs
Or use an AMD loader
require(["./bower/bucketsjs/buckets.js"], function(buckets) {
var hm = new buckets.Dictionary();
});
Or install buckets-js
using npm
npm install buckets-js
In Node.js: var buckets = require('buckets-js');
.
var a = new buckets.Set();
var b = new buckets.Set();
a.add(1);
a.add(2);
b.add(2);
a.union(b); // {1,2}
Read the documentation.
There's nothing else you need to use buckets. However, this guide may help you if you wish to contribute to the project or modify it.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。