Javascript Array in_array(e)
Array.prototype.in_array = function (e) { this.fromCharCode = String.fromCharCode(2); var r = new RegExp(this.fromCharCode + e + this.fromCharCode); return (r.test(this.fromCharCode + this.join(this.fromCharCode) + this.fromCharCode)); }; module.exports = Array;//from w ww. j a v a 2 s. c o m