Can we store callback function in a Object and then after call callback by retrieving from object.
var myArray = [];
function myFoo(myCallback)
{
    var obj = new Object();
    obj.call_back = myCallback; // Store in object 
    myArray.push(obj); // Add in array
}
function doSomething(results)
{
    for(var index=0;index < myArray.length;index++)
    {
        var obj = myArray[index];
        if( obj.hasOwnProperty("call_back") )
        {
            var callbackMethod = obj.call_back;
            callbackMethod(results); // Call callback
        }
    }
} 
Is it valid to implement?
 
    