Forum Discussion

Sgarim4's avatar
Sgarim4
New Contributor II
7 years ago
Solved

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 ...
  • del's avatar
    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)