"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/fs-extra/lib/util/assign.js" (8 Mar 2017, 303 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Javascript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    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