UNPKG

@atlaskit/dropdown-menu

Version:

A dropdown menu displays a list of actions or options to a user.

7 lines 251 B
const resetOptionsInGroup = group => { return Object.keys(group || {}).reduce((accumulator, current) => ({ ...accumulator, [current]: typeof group[current] === 'undefined' ? undefined : false }), {}); }; export default resetOptionsInGroup;