UNPKG
wallant
Version:
latest (2.2.1)
2.2.1
2.2.0
2.1.0
2.0.0
1.1.1
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
Persistant, auto-validate, and computed state container
github.com/e1016/wallant
e1016/wallant
wallant
/
src
/
utils.js
13 lines
(11 loc)
•
190 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/** *
@param
{object} object target to be cloned *
@returns
{object} clone of object */
export
function
cloneOf
(
object
)
{
return
JSON.
parse
( JSON.
stringify
(
object
) ) }