var getNotes = function (storeInfoList, storeIndex) { if (!storeInfoList || typeof storeInfoList !== 'object' || typeof storeInfoList.length !== 'number' || storeIndex < 0 || storeIndex >= storeInfoList.length) { return ''; } var storeInfo = storeInfoList[storeIndex]; if (!storeInfo) { return ''; } return storeInfo.remark || ''; }; module.exports = getNotes;