Nodejs Utililty Methods Object Value Get

List of utility methods to do Object Value Get

Description

The list of methods to do Object Value Get are organized into topic(s).

Method

values()
Object.prototype.values = function() {
  var v = [];
  for (var p in this) {
    if (this.hasOwnProperty(p)) {
      v.push(this[p]);
  return v;
};
...
values(obj)
Object.values = function(obj) { 
   return Object.keys(obj).map(function(key) { 
      return obj[key]; 
   }); 
};
hasValue(val)
Object.prototype.hasValue = function(val){
  for (var key in this) {
    if (this.hasOwnProperty(key)) {
      if(this[key]==val){
        return true
  return false
...
allProperties()
Object.prototype.allProperties = function() {
    var prop,
        props = [];
    for(prop in this){
        if(this.hasOwnProperty(prop)){
            props.push(prop);
    return props;
...
isEmpty(obj)
Object.isEmpty = function(obj) {
  for (var i in obj) {
    return false;
  return true;