Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// dispatch: PropTypes.func.isRequired,
// location: PropTypes.shape({
// pathname: PropTypes.string
// })
}
App.defaultProps = {
location: undefined
}
const mapStateToProps = (state, ownProps) => {
return {
location: state.router.location
}
}
export default DndProvider(HTML5Backend)(connect(mapStateToProps)(App))
export { App as AppNotConnected }
// chrome 41 fix
// https://tc39.github.io/ecma262/#sec-array.prototype.find
if (!Array.prototype.find) {
Object.defineProperty(Array.prototype, 'find', {
value: function(predicate) {
// 1. Let O be ? ToObject(this value).
if (this == null) {
throw new TypeError('"this" is null or not defined');
}
var o = Object(this);
// 2. Let len be ? ToLength(? Get(O, "length")).
var len = o.length >>> 0;