UNPKG
splat-ecs
Version:
latest (7.6.0)
7.6.0
7.5.1
7.5.0
7.4.1
7.4.0
7.3.0
7.2.2
7.2.1
7.2.0
7.1.0
7.0.0
6.1.0
6.0.1
6.0.0
5.5.1
5.5.0
5.4.0
5.3.0
5.2.0
5.1.2
5.1.1
5.1.0
5.0.0
4.1.1
4.1.0
4.0.0
3.2.0
3.1.1
3.1.0
3.0.2
3.0.1
3.0.0
2.0.0
1.0.0
0.7.0
0.6.2
0.6.1
0.6.0
0.5.0
0.4.2
0.4.1
0.4.0
0.3.2
0.3.1
0.3.0
0.2.0
0.1.1
0.1.0
0.0.1
0.0.0
A 2D HTML5 Canvas game engine
github.com/SplatJS/splat-ecs
SplatJS/splat-ecs
splat-ecs
/
lib
/
clone.js
7 lines
(6 loc)
•
137 B
JavaScript
View Raw
1
2
3
4
5
6
7
module
.
exports
=
function
clone
(
obj
) {
if
(obj ===
undefined
) {
return
undefined
; }
return
JSON
.
parse
(
JSON
.
stringify
(obj)); };