function createObjectFrom(keys, values /* = true */) {
  if ("production" !== "development") {
    if (!Array.isArray(keys)) {
      throw new TypeError('Must pass an array of keys.');
    }
  }

  var object = {};
  var isArray = Array.isArray(values);
  if (typeof values == 'undefined') {
    values = true;
  }

  for (var ii = keys.length; ii--;) {
    object[keys[ii]] = isArray ? values[ii] : values;
  }
  return object;
}
Construct an object from an array of keys
and optionally specified value or list of values.

 >>> createObjectFrom(['a','b','c']);
 {a: true, b: true, c: true}

 >>> createObjectFrom(['a','b','c'], false);
 {a: false, b: false, c: false}

 >>> createObjectFrom(['a','b','c'], 'monkey');
 {c:'monkey', b:'monkey' c:'monkey'}

 >>> createObjectFrom(['a','b','c'], [1,2,3]);
 {a: 1, b: 2, c: 3}

 >>> createObjectFrom(['women', 'men'], [true, false]);
 {women: true, men: false}

@param   Array   list of keys
@param   mixed   optional value or value array.  defaults true.
@returns object