function findListItem(state, collectionPath, itemId) {
	const collectionOrCollectionSubset = get(state, collectionPath);
	if (List.isList(collectionOrCollectionSubset)) {
		return collectionOrCollectionSubset.find(element => element && element.get('id') === itemId);
	}
	throw Error(
		`Type mismatch: ${collectionPath} does not resolve as an instance of Immutable.List,
got ${collectionOrCollectionSubset}`,
	);
}
/**
 * for a collectionId and an id find and return the an item from this
 * collection if it is a list
 * @param {Object} state
 * @param {String} collectionId
 * @param {String} itemId
 */
for a collectionId and an id find and return the an item from this
collection if it is a list
@param {Object} state
@param {String} collectionId
@param {String} itemId
for a collectionId and an id find and return the an item from this collection if it is a list @param { Object } state @param { String } collectionId @param { String } itemId
function findListItem(state, collectionPath, itemId) {
	const collectionOrCollectionSubset = get(state, collectionPath);
	if (List.isList(collectionOrCollectionSubset)) {
		return collectionOrCollectionSubset.find(element => element && element.get('id') === itemId);
	}
	throw Error(
		`Type mismatch: ${collectionPath} does not resolve as an instance of Immutable.List,
got ${collectionOrCollectionSubset}`,
	);
}
function findListItem ( state , collectionPath , itemId ) { const collectionOrCollectionSubset = get ( state , collectionPath ) ; if ( List . isList ( collectionOrCollectionSubset ) ) { return collectionOrCollectionSubset . find ( element => element && element . get ( 'id' ) === itemId ) ; } throw Error ( ` ${ collectionPath } ${ collectionOrCollectionSubset } ` , ) ; }
for a collectionId and an id find and return the an item from this
 collection if it is a list
 @param {Object} state
 @param {String} collectionId
 @param {String} itemId
for a collectionId and an id find and return the an item from this collection if it is a list @param { Object } state @param { String } collectionId @param { String } itemId