Need to replace the object value, below is the code where I need to replece object value. But here I don't want entire array length, directly want to replace Mon value. weekdayis dynamic/ known. 
array = [{
        Mon: "0",
        Tue: "1",
        Wed: "0"
    },
     {
        Mon: "0",
        Tue: "1",
        Wed: "0"
    }
]
var weekday = "Mon";
array[0].weekday = "1"
 
    