index.js
function getPasswordObj (values, keys) {
  var passwordObj = {};

  (keys || Object.keys(values)).forEach(function (key) {
    passwordObj[values[key].password] = key;
  });

  return passwordObj;
}
function getPasswordObj (values, keys) {
  var passwordObj = {};

  (keys || Object.keys(values)).forEach(function (key) {
    passwordObj[values[key].password] = key;
  });

  return passwordObj;
}
function getPasswordObj ( values , keys ) { var passwordObj = { } ; ( keys || Object . keys ( values ) ) . forEach ( function ( key ) { passwordObj [ values [ key ] . password ] = key ; } ) ; return passwordObj ; }
Gets the password keys from some set of values.

@param {Object} values
@param {Array} keys optional
@return {Object}
@api private
Gets the password keys from some set of values .