UNPKG
singlie
Version:
latest (3.0.1)
3.0.1
3.0.0
2.1.0
2.0.0
1.1.0
1.0.2
1.0.1
1.0.0
⚡ Singly circular & linear linked lists for ES6
klaussinani/singlie
singlie
/
src
/
node.js
27 lines
(20 loc)
•
315 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
'use strict'
;
class
Node
{
constructor
(
value
) {
this
.
_next
=
null
;
this
.
_value
= value; }
get
next
() {
return
this
.
_next
; }
set
next
(
node
) {
this
.
_next
= node; }
get
value
() {
return
this
.
_value
; }
set
value
(
value
) {
this
.
_value
= value; } }
module
.
exports
=
Node
;