UNPKG
reign
Version:
latest (0.0.1)
0.0.1
A persistent, typed-objects implementation.
github.com/codemix/reign
codemix/reign
reign
/
src
/
builtins
/
hash-set
/
README.md
15 lines
(11 loc)
•
250 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Hash Set
Generic hash
set
type allowing [any](../any) serialiable input. ```js
const
set
=
new
T.HashSet();
set
.
add
(
'hello'
);
set
.
add
(
123
);
set
.
add
(
true
); console.log(
set
.has(
'hello'
)); console.log(
set
.has(
123
)); console.log(
set
.has(
true
)); ```