import _ from 'lodash' ; import { createSelector } from 'reselect' ; import { ApplicationState } from 'store/reducers' ; param state param id return const getChatterNote = ( state , id ) => _ . get ( state . notes , id ) ; return export const makeGetChatterNote = ( ) => createSelector ( [ getChatterNote ] , ( note ) => { return _ . isNil ( note ) ? '' : note ; } ) ; param state return export const getNotesBackup = ( state ) => state . notes ;