How to use static-extend - 1 common examples

To help you get started, we’ve selected a few static-extend examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jonschlinkert / class-utils / index.js View on Github external
cu.extend = function() {
  // keep it lazy, instead of assigning to `cu.extend`
  return staticExtend.apply(null, arguments);
};

static-extend

Adds a static `extend` method to a class, to simplify inheritance. Extends the static properties, prototype properties, and descriptors from a `Parent` constructor onto `Child` constructors.

MIT
Latest version published 9 years ago

Package Health Score

65 / 100
Full package analysis

Popular static-extend functions