﻿Array.prototype.find= function(o)
{
    for(i=0;i<this.length;i++)
    {
        if(typeof(o) == "object")
        {   
            var flag=true;
            for( j in o)
            {                          
                if(o[j] != this[i][j])
                {
                    flag=false;
                }
            }
            if(flag)
            {
                return this[i];
            }
        }    
        else
        {
            if(this[i] == o)
            {
                return this[i];
            }
        }
    } 
}
