function deleteCollectionElement(state, action) {
	if (action.operations.delete) {
		const collection = state.getIn(action.collectionId);
		if (Map.isMap(collection)) {
			return deleteMapElements(state, action);
		} else if (List.isList(collection)) {
			return deleteListElements(state, action);
		}
		throw new Error('CMF collection deletion is only compatible with ImmutableJs List and Map');
	}
	return state;
}
/**
 * deleteElementFromCollection
 *
 * @param state current redux state
 * @param action redux action
 * @returns {object} the new state
 */
deleteElementFromCollection
@param state current redux state
@param action redux action
@returns {object} the new state
deleteElementFromCollection @param state current redux state @param action redux action @returns { object } the new state
function deleteCollectionElement(state, action) {
	if (action.operations.delete) {
		const collection = state.getIn(action.collectionId);
		if (Map.isMap(collection)) {
			return deleteMapElements(state, action);
		} else if (List.isList(collection)) {
			return deleteListElements(state, action);
		}
		throw new Error('CMF collection deletion is only compatible with ImmutableJs List and Map');
	}
	return state;
}
function deleteCollectionElement ( state , action ) { if ( action . operations . delete ) { const collection = state . getIn ( action . collectionId ) ; if ( Map . isMap ( collection ) ) { return deleteMapElements ( state , action ) ; } else if ( List . isList ( collection ) ) { return deleteListElements ( state , action ) ; } throw new Error ( 'CMF collection deletion is only compatible with ImmutableJs List and Map' ) ; } return state ; }
deleteElementFromCollection
 @param state current redux state
 @param action redux action
 @returns {object} the new state
deleteElementFromCollection @param state current redux state @param action redux action @returns { object } the new state