UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

19 lines 359 B
export const groupKeysMap = keys => { const map = new Map(); keys.forEach((key, index) => { map.set(key, index); }); return map; }; export const groupDisabledKeysMap = dataSource => { const map = new Map(); dataSource.forEach(({ disabled, key }, index) => { if (disabled) { map.set(key, index); } }); return map; };