obj-extend

WebJar for obj-extend

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

obj-extend
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

obj-extend
WebJar for obj-extend
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/mlmorg/obj-extend

Download obj-extend

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/obj-extend/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>obj-extend</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/obj-extend/
implementation 'org.webjars.npm:obj-extend:0.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/obj-extend/
implementation ("org.webjars.npm:obj-extend:0.1.0")
'org.webjars.npm:obj-extend:jar:0.1.0'
<dependency org="org.webjars.npm" name="obj-extend" rev="0.1.0">
  <artifact name="obj-extend" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='obj-extend', version='0.1.0')
)
libraryDependencies += "org.webjars.npm" % "obj-extend" % "0.1.0"
[org.webjars.npm/obj-extend "0.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

obj-extend

When called, this module simply sets all of the properties of each source object onto the destination object (the first argument). Every property with the same name is overridden in the order in which they were passed.

Installation

$ npm install obj-extend

Usage

var events = require('events');
var extend = require('obj-extend');

var Person = function (name) {
  this.name = name;
};

extend(Person.prototype, events.EventEmitter.prototype, {

  emitName: function () {
    this.emit('name', this.name);
  }

});

Versions

Version
0.1.0