knockout update observable array with new array code example Example: knockout replace observable array self.locations.replace(oldLocation, new location(value));