UNPKG
brush_cli
Version:
latest (0.0.2)
0.0.2
0.0.1
A tool for creating and developing cmos PC Framework project.
brush_cli
/
node_modules
/
noptify
/
util
/
extend.js
16 lines
(10 loc)
•
262 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Simple extend utility method
module
.
exports
=
function
extend
(
obj
) {
var
args =
Array
.
prototype
.
slice
.
call
(
arguments
,
1
); args.
forEach
(
function
(
o
) {
Object
.
keys
(o).
forEach
(
function
(
prop
) { obj[prop] = o[prop]; }); });
return
obj; }