Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

skava / exotic   js

Repository URL to install this package:

Version: 2.0.8 

/ src / types / NATIVE / prototype / prototypeWalk.ts

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]
}