I have an interface called Obj and it contains a bunch of boolean
interface Obj {
isVisited: boolean,
isChecked: boolean,
isToggled: boolean
}
And I want to initialize an object of this type and assign every property of it with false
const obj: Obj = {
isVisited: false,
isChecked: false,
isToggled: false
}
I wonder is there a programmatic way of doing it rather than manually tying it out?