const protos = (x: any) => {
let proto = x
let list = [proto]
while (proto && proto.prototype) {
proto = proto.prototype
list.push(proto)
}
return list
}
// eslint-disable-next-line
const copy = (x: Object | any[]) => {
for (let prop in x) x[prop] = x[prop]
}