All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.cjs.values.js Maven / Gradle / Ivy

The newest version!
var keys = require('./keys.js');

// Retrieve the values of an object's properties.
function values(obj) {
  var _keys = keys(obj);
  var length = _keys.length;
  var values = Array(length);
  for (var i = 0; i < length; i++) {
    values[i] = obj[_keys[i]];
  }
  return values;
}

module.exports = values;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy