remove object.fromEntries (#933)

This commit is contained in:
David Luzar
2020-03-13 15:10:24 +01:00
committed by GitHub
parent f393486eed
commit 450a024f5c
3 changed files with 15 additions and 10 deletions

View File

@ -98,7 +98,9 @@ function _duplicateElement(val: any, depth: number = 0) {
return val;
}
export function duplicateElement(element: ReturnType<typeof newElement>) {
export function duplicateElement(
element: ReturnType<typeof newElement>,
): ReturnType<typeof newElement> {
const copy = _duplicateElement(element);
copy.id = nanoid();
copy.seed = randomSeed();