import * as sagas from './sagas'

export const initSagas = sagaMiddleware => {
	Object.values(sagas).forEach(sagaMiddleware.run.bind(sagaMiddleware))
}

import * as sagas from './sagas'

export const initSagas = sagaMiddleware => {
	Object.keys(sagas)
		.map(key => sagas[key])
		.forEach(sagaMiddleware.run.bind(sagaMiddleware))
}

fix Object.values error