You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
726 B

2 years ago
  1. # xtend
  2. [![browser support][3]][4]
  3. [![locked](http://badges.github.io/stability-badges/dist/locked.svg)](http://github.com/badges/stability-badges)
  4. Extend like a boss
  5. 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.
  6. ## Examples
  7. ```js
  8. var extend = require("xtend")
  9. // extend returns a new object. Does not mutate arguments
  10. var combination = extend({
  11. a: "a",
  12. b: "c"
  13. }, {
  14. b: "b"
  15. })
  16. // { a: "a", b: "b" }
  17. ```
  18. ## Stability status: Locked
  19. ## MIT Licensed
  20. [3]: http://ci.testling.com/Raynos/xtend.png
  21. [4]: http://ci.testling.com/Raynos/xtend