function* handleStep(step) {
	if (step[SAGAS]) {
		return yield all(step[SAGAS].map(saga => call(api.sagas.get(saga))));
	}
	if (step[ACTION_CREATORS]) {
		return yield all(
			step[ACTION_CREATORS].map(actionCreator => api.sagas.putActionCreator(actionCreator)),
		);
	} else if (step[WAIT_FOR]) {
		return yield all(step[WAIT_FOR].map(collectionName => call(waitFor, collectionName)));
	} else if (step[TAKE_ACTION]) {
		return yield all(step[TAKE_ACTION].map(actionName => take(actionName, actionName)));
	}
	return invariant(
		process.env.NODE_ENV !== 'production',
		`Step object must have ${ACTION_CREATORS} or ${WAIT_FOR} attribute`,
	);
}
/**
 * This function handle a specific step
 * @param {object} step a bootstrap step that could contain a actionCreator list or a waitList
 */
This function handle a specific step
@param {object} step a bootstrap step that could contain a actionCreator list or a waitList
This function handle a specific step @param { object } step a bootstrap step that could contain a actionCreator list or a waitList
function* handleStep(step) {
	if (step[SAGAS]) {
		return yield all(step[SAGAS].map(saga => call(api.sagas.get(saga))));
	}
	if (step[ACTION_CREATORS]) {
		return yield all(
			step[ACTION_CREATORS].map(actionCreator => api.sagas.putActionCreator(actionCreator)),
		);
	} else if (step[WAIT_FOR]) {
		return yield all(step[WAIT_FOR].map(collectionName => call(waitFor, collectionName)));
	} else if (step[TAKE_ACTION]) {
		return yield all(step[TAKE_ACTION].map(actionName => take(actionName, actionName)));
	}
	return invariant(
		process.env.NODE_ENV !== 'production',
		`Step object must have ${ACTION_CREATORS} or ${WAIT_FOR} attribute`,
	);
}
function * handleStep ( step ) { if ( step [ SAGAS ] ) { return yield all ( step [ SAGAS ] . map ( saga => call ( api . sagas . get ( saga ) ) ) ) ; } if ( step [ ACTION_CREATORS ] ) { return yield all ( step [ ACTION_CREATORS ] . map ( actionCreator => api . sagas . putActionCreator ( actionCreator ) ) , ) ; } else if ( step [ WAIT_FOR ] ) { return yield all ( step [ WAIT_FOR ] . map ( collectionName => call ( waitFor , collectionName ) ) ) ; } else if ( step [ TAKE_ACTION ] ) { return yield all ( step [ TAKE_ACTION ] . map ( actionName => take ( actionName , actionName ) ) ) ; } return invariant ( process . env . NODE_ENV !== 'production' , ` ${ ACTION_CREATORS } ${ WAIT_FOR } ` , ) ; }
This function handle a specific step
 @param {object} step a bootstrap step that could contain a actionCreator list or a waitList
This function handle a specific step @param { object } step a bootstrap step that could contain a actionCreator list or a waitList