UNPKG

virtua

Version:

A zero-config, fast and small (~3kB) virtual list (and grid) component for React, Vue, Solid and Svelte.

14 lines (12 loc) 350 B
const styleToString = (obj) => { return Object.keys(obj).reduce((acc, k) => { const value = obj[k]; if (value == null) { return acc; } return acc + `${k}:${value};`; }, ""); }; const defaultGetKey = (_data, i) => "_" + i; export { defaultGetKey, styleToString }; //# sourceMappingURL=utils.js.map