UNPKG

react-carousel-query

Version:

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

18 lines (13 loc) 325 B
'use strict' exports.parse = parse exports.stringify = stringify var empty = '' var space = ' ' var whiteSpace = /[ \t\n\r\f]+/g function parse(value) { var input = String(value || empty).trim() return input === empty ? [] : input.split(whiteSpace) } function stringify(values) { return values.join(space).trim() }