deap / 1.0.0 last updated 2 years ago created on May 8th 2013
Install
npm install --save deap
Clone
git clone git@github.com:selfcontained/deap.git
dependencies
No dependencies listed.
maintainers
versions
7 total
| 1.0.0 | 2 years ago | bmharris |
| 0.2.2 | 2 years ago | bmharris |
| 0.2.1 | 2 years ago | bmharris |
| 0.2.0 | 3 years ago | bmharris |
| 0.1.2 | 3 years ago | bmharris |
| 0.1.1 | 3 years ago | bmharris |
| 0.1.0 | 3 years ago | bmharris |
readme
===
deap
extend and merge objects, deep or shallow, in javascript
installation
browser usage
deap assumes es5, so we recommend using an es5 shim for older browsers. Browserify is also recommended as a means to use this module client-side, but other module loaders for browsers will work with deap as well if you shim it.
available functions
- deap() and deap.extend() - deep extend
- deap.merge() - deep merge
- deap.update() - deep update
- deap.extendShallow() - shallow extend
- deap.mergeShallow() - shallow merge
- deap.updateShallow() - shallow update
- deap.clone() - deep clone
deap() and deap.extend()
Deep extend. Copy all the properties from one object onto another, cloning objects deeply.
Takes n number of arguments, modifies the first argument and returns it.
deap.merge()
Deep merge. Copy properties from one object to another, not replacing existing properties.
Takes n number of arguments, modifies the first argument and returns it.
deap.update()
Deep update. Fill an object's existing properties from another object.
Takes n number of arguments, modifies the first argument and returns it.
shallow only
If you prefer a shallow-only instance of deap you can require it specifically
... the end
