object-array-extend

1.0.1 • Public • Published

object-array-extend

object extend

merge object & array

Examples

let extend = require('object-array-extend');

let style_1 = {
	backgroundColor: 'red';
}			

let style_2 = [
	{
		backgroundColor: 'green'
	},
	{
		width: 100
	}
]

let styles = extend(style_1, style_2);

console.log(styles); 
// log:
// {
//	backgroundColor: 'green',
//	width: 100
// }

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i object-array-extend

      Weekly Downloads

      1

      Version

      1.0.1

      License

      ISC

      Last publish

      Collaborators

      • caijf