main
|
Last change
on this file was 62b2964, checked in by Klimentina Efremova <klimentina08642@…>, 2 weeks ago |
|
Project Handcraft Marketplace
|
-
Property mode
set to
100644
|
|
File size:
726 bytes
|
| Line | |
|---|
| 1 | # xtend
|
|---|
| 2 |
|
|---|
| 3 | [![browser support][3]][4]
|
|---|
| 4 |
|
|---|
| 5 | [](http://github.com/badges/stability-badges)
|
|---|
| 6 |
|
|---|
| 7 | Extend like a boss
|
|---|
| 8 |
|
|---|
| 9 | xtend is a basic utility library which allows you to extend an object by appending all of the properties from each object in a list. When there are identical properties, the right-most property takes precedence.
|
|---|
| 10 |
|
|---|
| 11 | ## Examples
|
|---|
| 12 |
|
|---|
| 13 | ```js
|
|---|
| 14 | var extend = require("xtend")
|
|---|
| 15 |
|
|---|
| 16 | // extend returns a new object. Does not mutate arguments
|
|---|
| 17 | var combination = extend({
|
|---|
| 18 | a: "a",
|
|---|
| 19 | b: "c"
|
|---|
| 20 | }, {
|
|---|
| 21 | b: "b"
|
|---|
| 22 | })
|
|---|
| 23 | // { a: "a", b: "b" }
|
|---|
| 24 | ```
|
|---|
| 25 |
|
|---|
| 26 | ## Stability status: Locked
|
|---|
| 27 |
|
|---|
| 28 | ## MIT Licensed
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 | [3]: http://ci.testling.com/Raynos/xtend.png
|
|---|
| 32 | [4]: http://ci.testling.com/Raynos/xtend
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.