UNPKG

@thehappycoder/react-responsive-pagination

Version:
7 lines (6 loc) 176 B
export function isNumber(val) { return typeof val === 'number'; } export function sum(items) { return items.reduce(function (acc, width) { return acc + width; }, 0); }