Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const wrapIntoList = (state, dispatch, listType) => {
return baseCommand.autoJoin(
wrapInList(listType),
(before, after) => before.type === after.type && before.type === listType
)(state, dispatch);
};