projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Version 1
[yaffs-website]
/
node_modules
/
fs-extra
/
lib
/
util
/
assign.js
1
// simple mutable assign
2
function assign () {
3
var args = [].slice.call(arguments).filter(function (i) { return i })
4
var dest = args.shift()
5
args.forEach(function (src) {
6
Object.keys(src).forEach(function (key) {
7
dest[key] = src[key]
8
})
9
})
10
11
return dest
12
}
13
14
module.exports = assign