extend-basic

0.1.7 • Public • Published

extend-basic

NPM version build status schoolmarm-standard-style Downloads

extend objects in javascript (shallow)

Install

Install with npm

npm i extend-basic --save

Run tests

npm test

Usage

var extend = require('extend-basic')
 
var a = {
  foo: 1,
  bar: 'baz',
  bam: true
}
 
var b = {
  bam: false,
  boo: [1, 2, 3]
}
 
console.log(extend(a, b)) // produces -->
 
{
  foo: 1,
  bar: 'baz',
  bam: false,
  boo: [1, 2, 3]
}

API

Contributing

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

Author

Keith Williams

License

Copyright (c) 2014-2015 Keith Williams
Released under the MIT license


Readme

Keywords

none

Package Sidebar

Install

npm i extend-basic

Weekly Downloads

1

Version

0.1.7

License

MIT

Last publish

Collaborators

  • akileez