Refactor styles inherent.

This commit is contained in:
Oleg Sh
2021-04-13 14:50:01 +02:00
parent 1fb79b3418
commit 4a7b1a534c
5 changed files with 288 additions and 76 deletions

View File

@@ -22,3 +22,16 @@ function gDecodeFromHTML(str)
.replace(/&lt;/g, '<')
.replace(/&amp;/g, '&');
}
function FullArrayCopy(arr)
{
var res = [];
arr.forEach(function(element) {
var copyElement = Object.assign(Object.create(element), element);
res.push(copyElement);
});
return res;
}