Node.js examples for Array:Search
Array contains Identifiable
Array.prototype.containsIdentifiable = function (identity) { var i = this.length; while (i--) { if (this[i].identity == identity) { return true; }/*from ww w .j av a 2 s .c o m*/ } return false; };