data.map(x => ({ roleId: x.roleId, roleName: x.roleName, userCount: x.userList.filter(u => u.userId != null).length })) for mapping data
Search This Blog
Mashrafe's Journey
Posts
Featured
Latest Posts
Create Table with primary key and Auto Increment && Rename Column && update view model
- Get link
- X
- Other Apps
Backtracking Code with Advanced Recursion
- Get link
- X
- Other Apps
Find the indexes using two pointer theory
- Get link
- X
- Other Apps
How to successfully erase multiple characters from a string in inner loop !!
- Get link
- X
- Other Apps
