"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=didYouMean;varMAX_SUGGESTIONS=5;/** * Given [ A, B, C ] return ' Did you mean A, B, or C?'. */// eslint-disable-next-line no-redeclarefunctiondidYouMean(firstArg,secondArg){var_ref=typeoffirstArg==='string'?[firstArg,secondArg]:[undefined,firstArg],subMessage=_ref[0],suggestions=_ref[1];varmessage=' Did you mean ';if(subMessage){message+=subMessage+' ';}switch(suggestions.length){case0:return'';case1:returnmessage+suggestions[0]+'?';case2:returnmessage+suggestions[0]+' or '+suggestions[1]+'?';}varselected=suggestions.slice(0,MAX_SUGGESTIONS);varlastItem=selected.pop();returnmessage+selected.join(', ')+', or '+lastItem+'?';}