UNPKG
dicelang
Version:
latest (0.0.2)
0.0.2
0.0.1
0.0.0
JavaScript interpreter of the Roll20 dice language
github.com/IrisAmp/dicelang
IrisAmp/dicelang
dicelang
/
dist
/
Common
/
Util.js
11 lines
(10 loc)
•
317 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
function
shallowCopy
(
source
) {
var
result = {};
Object
.
getOwnPropertyNames
(source).
forEach
(
function
(
property
) { result[property] = source[property]; });
return
result; }
exports
.
shallowCopy
= shallowCopy;