UNPKG

@csegames/camelot-unchained

Version:

Camelot Unchained Client Library

17 lines (16 loc) 516 B
"use strict"; /* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ Object.defineProperty(exports, "__esModule", { value: true }); function withDefaults(a, defaults) { if (!a) return defaults; var result = {}; for (var key in defaults) { result[key] = a[key] || defaults[key]; } return result; } exports.withDefaults = withDefaults;