UNPKG

react-redux-fetch

Version:

A declarative and customizable way to fetch data for React components and manage that data in the Redux state

13 lines (12 loc) 251 B
export default { contains: (obj, prop, message) => { if (!obj[prop]) { throw Error(message || `Required property ${prop} missing`); } }, exists: (prop, message) => { if (!prop) { throw Error(message || ''); } }, };