Does associative array item exist? - Node.js Array

Node.js examples for Array:Associate Array

Description

Does associative array item exist?

Demo Code

Array.prototype.Exists = function(key) {
  var type = typeof(this[key]);
  return (type != 'undefined' && type != 'function');
}

Related Tutorials