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 / getPrototype.ts

const getPrototypeOf = Object.getPrototypeOf

const getConstructor = (x: any): any => (x == null ? null : x.constructor)

const getPrototypeConstructor = (x: any) =>
  x == null ? null : getConstructor(getPrototypeOf(x))

export { getPrototypeOf, getConstructor, getPrototypeConstructor }