function checkSteps(steps) {
	return steps.map(step => {
		if (!hasStepFailure(step)) {
			invariant(
				process.env.NODE_ENV === 'production',
				`Stepper : No failureOn step for ${step.label} step`,
			);
		}
		if (!hasStepSuccess(step)) {
			invariant(
				process.env.NODE_ENV === 'production',
				`Stepper : No successOn step for ${step.label} step`,
			);
		}
		if (!hasStepLoading(step) && !step.status) {
			invariant(
				process.env.NODE_ENV === 'production',
				`Stepper : No loadingOn step or initial status for ${step.label} step`,
			);
		}
		if (!step.status) {
			return { ...step, status: LOADING_STEP_STATUSES.PENDING };
		}
		return step;
	});
}
/**
 * This function check & mutate the steps
 * @param {array} steps the loading steps
 */
This function check & mutate the steps
@param {array} steps the loading steps
This function check & mutate the steps @param { array } steps the loading steps
function checkSteps(steps) {
	return steps.map(step => {
		if (!hasStepFailure(step)) {
			invariant(
				process.env.NODE_ENV === 'production',
				`Stepper : No failureOn step for ${step.label} step`,
			);
		}
		if (!hasStepSuccess(step)) {
			invariant(
				process.env.NODE_ENV === 'production',
				`Stepper : No successOn step for ${step.label} step`,
			);
		}
		if (!hasStepLoading(step) && !step.status) {
			invariant(
				process.env.NODE_ENV === 'production',
				`Stepper : No loadingOn step or initial status for ${step.label} step`,
			);
		}
		if (!step.status) {
			return { ...step, status: LOADING_STEP_STATUSES.PENDING };
		}
		return step;
	});
}
function checkSteps ( steps ) { return steps . map ( step => { if ( ! hasStepFailure ( step ) ) { invariant ( process . env . NODE_ENV === 'production' , ` ${ step . label } ` , ) ; } if ( ! hasStepSuccess ( step ) ) { invariant ( process . env . NODE_ENV === 'production' , ` ${ step . label } ` , ) ; } if ( ! hasStepLoading ( step ) && ! step . status ) { invariant ( process . env . NODE_ENV === 'production' , ` ${ step . label } ` , ) ; } if ( ! step . status ) { return { ... step , status : LOADING_STEP_STATUSES . PENDING } ; } return step ; } ) ; }
This function check & mutate the steps
 @param {array} steps the loading steps
This function check & mutate the steps @param { array } steps the loading steps