UNPKG

dicelang

Version:

JavaScript interpreter of the Roll20 dice language

11 lines (10 loc) 317 B
"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;