прототип класса клана JavaScript

let clone = Object.assign(Object.create(Object.getPrototypeOf(orig)), orig)
Silly Sandpiper