UNPKG

react-redux-fetch

Version:

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

15 lines (14 loc) 325 B
'use strict'; exports.__esModule = true; exports.default = { contains: function contains(obj, prop, message) { if (!obj[prop]) { throw Error(message || 'Required property ' + prop + ' missing'); } }, exists: function exists(prop, message) { if (!prop) { throw Error(message || ''); } } };