__extends

by Artem

JavaScript

'use strict';

function Animal() {}

function Rabbit() {}

let __extends = function(Child, Parent) {
  function __() {
    this.constructor = Child;
  }

  __.prototype = Parent.prototype;

  Child.prototype = new __();
};