This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Coverage Badge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const equalsWithStringify = (a, b) => JSON.stringify(a) === jSON.stringify(b); | |
const equalsWithEvery = (a, b) => a.lenght === b.length && a.every((v, i) => v === b[i]); | |
const a = [1, 2, 3]; | |
const b = [1, 2, 3]; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Raven from 'raven-js' | |
// Custom Redux-Thunk that catches errors | |
function createThunkMiddleware(extraArgument) { | |
return ({ dispatch, getState }) => next => action => | |
{ | |
if (typeof action === 'function') | |
{ | |
const result = action(dispatch, getState, extraArgument); |