index.js
function mapDependencies(dependencies) {
  var deps;

  deps = (dependencies) ? Object.keys(dependencies) : [];

  return deps.map(function(name) {
    return {
      name: name,
      version: dependencies[name]
    };
  });
}
function mapDependencies(dependencies) {
  var deps;

  deps = (dependencies) ? Object.keys(dependencies) : [];

  return deps.map(function(name) {
    return {
      name: name,
      version: dependencies[name]
    };
  });
}
function mapDependencies ( dependencies ) { var deps ; deps = ( dependencies ) ? Object . keys ( dependencies ) : [ ] ; return deps . map ( function ( name ) { return { name : name , version : dependencies [ name ] } ; } ) ; }
Map the dependencies object to an array containing name && value properties.

@param {Object} dependencies
@returns {Array}
Map the dependencies object to an array containing name && value properties .