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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();