I have a selector that is selecting the array of arrays
export const doesArrayContainEmptyArray = createSelector(
getTestState,
(state: TestState) => state.selectedTemplate?.plate.map(p => p.plateTest.map(pt => pt?.columnValues))
);
In my .ts file I have an observable that calls the selector
doesArrayContainEmptyArray$ = this.store.pipe(select(doesArrayContainEmptyArray));
I console logged it out like this
this.doesArrayContainEmptyArray$.subscribe(a=> console.log("array: ", a));
In the console I see:
[Array(4)]
0: Array(4)
0: ['test']
1: []
2: []
3: []
I want the selector to return false if it the array contains an array that is empty and true if all inner arrays have values
