Plato on Github
Report Home
node_modules/es5-ext/object/normalize-options.js
Maintainability
79.91
Lines of code
22
Difficulty
9.82
Estimated Errors
0.14
Function weight
By Complexity
By SLOC
'use strict'; var assign = require('./assign') , forEach = Array.prototype.forEach , create = Object.create, getPrototypeOf = Object.getPrototypeOf , process; process = function (src, obj) { var proto = getPrototypeOf(src); return assign(proto ? process(proto, obj) : obj, src); }; module.exports = function (options/*, …options*/) { var result = create(null); forEach.call(arguments, function (options) { if (options == null) return; process(Object(options), result); }); return result; };