UNPKG
list-to-tree
Version:
latest (2.2.5)
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.0
2.0.0
1.1.0
1.0.0
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
List to tree data structure
github.com/DenQ/list-to-tree
DenQ/list-to-tree
list-to-tree
/
index.js
6 lines
(4 loc)
•
206 B
JavaScript
View Raw
1
2
3
4
5
6
const
LTT
=
require
(
'./dist/list-to-tree'
);
typeof
exports
===
'object'
&&
typeof
module
!==
'undefined'
?
module
.
exports
=
LTT
:
typeof
define ===
'function'
&& define.
amd
?
define
(
LTT
) :
this
.
LTT
=
LTT
;