UNPKG

vega-util

Version:

JavaScript utilities for Vega.

13 lines (11 loc) 326 B
import extend from './extend.js'; export default function(child, parent, members) { const proto = (child.prototype = Object.create(parent.prototype)); Object.defineProperty(proto, 'constructor', { value: child, writable: true, enumerable: true, configurable: true }); return extend(proto, members); }