lib/david.js
function normaliseDeps (deps) {
  if (Array.isArray(deps)) {
    deps = deps.reduce(function (d, depName) {
      d[depName] = '*'
      return d
    }, {})
  }
  return deps
}
function normaliseDeps (deps) {
  if (Array.isArray(deps)) {
    deps = deps.reduce(function (d, depName) {
      d[depName] = '*'
      return d
    }, {})
  }
  return deps
}
function normaliseDeps ( deps ) { if ( Array . isArray ( deps ) ) { deps = deps . reduce ( function ( d , depName ) { d [ depName ] = '*' return d } , { } ) } return deps }
Convert dependencies specified as an array to an object
Convert dependencies specified as an array to an object