UNPKG

jugglingdb

Version:

Node.js ORM for every database: redis, mysql, mongodb, postgres, sqlite, ...

11 lines (9 loc) 357 B
"use strict"; exports.inherits = function (newClass, baseClass) { Object.keys(baseClass).forEach(function (classMethod) { newClass[classMethod] = baseClass[classMethod]; }); Object.keys(baseClass.prototype).forEach(function (instanceMethod) { newClass.prototype[instanceMethod] = baseClass.prototype[instanceMethod]; }); };