I am currently working on a task involving the selection of columns from a table, with a restriction of 20 elements. The objective is to select all items up to the specified limit.
Current Status: 18/20
- Next column contains 10 elements
- Clicked on "select whole column" option
- Expected result: Only the first two elements to be selected
Approach I've attempted:
const myArray = selectedColumn.some(() => itemsOnArray.length <= 20)
? selectedLaborer.map((laborer) => laborer)
: [];