data.map(x => ({
roleId: x.roleId,
roleName: x.roleName,
userCount: x.userList.filter(u => u.userId != null).length
}))for mapping data
Comments
Post a Comment