I have a pair of objects:
The first one is a role object with the following properties:
Role {
roleId: string;
name: string;
description: string;
isModerator: string;
}
role = {
roleId:"8e8be141-130d-4e5c-82d2-0a642d4b73e1",
name:"HR",
description:"HR of the Company",
isModerator:"N"
}
And the second object is roleDetails with these properties:
RoleDetails {
name: string;
description: string;
isModerator: string;
}
I need to make roleDetails = role;
So that when I console.log(roleDetails)
,
I would receive:
roleDetails = {
name:"HR"
description:"HR of the Company"
isModerator:"N"
}