UNPKG

437 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.copyArray = (array) => {
4 return array.map(object => Object.assign(Object.create(object), object));
5};
6exports.copyObject = (object) => {
7 return Object.assign(Object.create(object), object);
8};
9exports.isObjectEmpty = (object) => {
10 for (const key in object) {
11 return false;
12 }
13 return true;
14};
15//# sourceMappingURL=utils.js.map
\No newline at end of file