Sgarim4
7 years agoNew Contributor II
Date Filter for loading Excel File
I am trying to filter an excel file from a folder based on date to load onto a database. I have successfully managed to get the filter snap to filter out all months other than current month with the ...
- 5 years ago
The Array.reduce function appears to be effective for this:
shortened syntax:
$myArray.reduce((av,cv,ci,ar) => (av && (ar[0] == cv)), true)
or verbose syntax:
$myArray.reduce((accumulatedValue,currentValue,currentIndex,originalArray) => (accumulatedValue && (originalArray[0] == currentValue)), true)