UNPKG

@atlaskit/dynamic-table

Version:

A dynamic table displays rows of data with built-in pagination, sorting, and re-ordering functionality.

15 lines 373 B
export const assertIsSortable = head => { if (!head || !head.cells) { return; } head.cells.forEach(cell => { if (cell.isSortable && !cell.key) { try { throw Error("isSortable can't be set to true, if the 'key' prop is missing."); } catch (e) { // eslint-disable-next-line no-console console.error(e); } } }); };