Consider the following code:
var AryUser = new Array();
AryUser.prototype.HasUser = function() {
if(this.length > 0)
return true;
else
return false;
}
I am already using prototype extending on some objects in my Node.js Projects. I came across an article, which states it's bad practice. Does it create overhead on server during execution of such functions?
Can anyone tell me what the reason is? (Any official document referral would be of great help)