UNPKG

sugar

Version:

A Javascript utility library for working with native objects.

9 lines (7 loc) 214 B
'use strict'; var createInstanceFromPrototype = Object.create || function(prototype) { var ctor = function() {}; ctor.prototype = prototype; return new ctor; }; module.exports = createInstanceFromPrototype;