UNPKG

@woocommerce/data

Version:
5 lines (4 loc) 166 B
/** * Filters tasks to only visible tasks, taking in account snoozed tasks. */ export const getVisibleTasks = (tasks) => tasks.filter((task) => !task.isDismissed);