mixin-object

WebJar for mixin-object

Лицензия

Лицензия

MIT
Категории

Категории

Mixin Библиотеки уровня приложения Bytecode Manipulation
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

mixin-object
Последняя версия

Последняя версия

2.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

mixin-object
WebJar for mixin-object
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/jonschlinkert/mixin-object

Скачать mixin-object

Как подключить последнюю версию

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.npm : for-in jar [0.1.3,0.2)
org.webjars.npm : is-extendable jar [0.1.1,0.2)

Модули Проекта

Данный проект не имеет модулей.

mixin-object NPM version NPM monthly downloads NPM total downloads Linux Build Status

Mixin the own and inherited properties of other objects onto the first object. Pass an empty object as the first arg to shallow clone.

Follow this project's author, Jon Schlinkert, for updates on this project and others.

Install

Install with npm:

$ npm install --save mixin-object

If you only want to combine own-properties, use extend-shallow.

Usage

var mixin = require('mixin-object');

var obj = {c: 'c'};
var foo = mixin({a: 'a'}, {b: 'b'});
console.log(foo);
//=> {c: 'c', a: 'a', b: 'b'}
console.log(obj);
//=> {c: 'c'}

mixin({}, {a: 'a'}, {b: 'b'});
//=> {a: 'a', b: 'b'}

About

Related projects

You might also be interested in these projects:

  • assign-deep: Deeply assign the enumerable properties and/or es6 Symbol properies of source objects to the target… more | homepage
  • defaults-deep: Like extend but recursively copies only the missing properties/values to the target object. | homepage
  • extend-shallow: Extend an object with the properties of additional objects. node.js/javascript util. | homepage
  • for-in: Iterate over the own and inherited enumerable properties of an object, and return an object… more | homepage
  • for-own: Iterate over the own enumerable properties of an object, and return an object with properties… more | homepage
  • is-plain-object: Returns true if an object was created by the Object constructor. | homepage
  • isobject: Returns true if the value is an object and not an array or null. | homepage
  • merge-deep: Recursively merge values in a javascript object. | homepage
  • mixin-deep: Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone. | homepage

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test

Author

Jon Schlinkert

License

Copyright © 2017, Jon Schlinkert. Released under the MIT License.


This file was generated by verb-generate-readme, v0.6.0, on September 04, 2017.

Версии библиотеки

Версия
2.0.1