UNPKG

react-carousel-query

Version:

A infinite carousel component made with react that handles the pagination for you.

6 lines 315 B
const disallowedCycleableItemTypes = ['reset']; export const createCycleValueArray = items => { // Do not allow items in the cycle arrays that are conditional in placement const valueArray = items.filter(item => !disallowedCycleableItemTypes.includes(item.type)).map(item => item.value); return valueArray; };