Created
July 5, 2019 14:27
-
-
Save WDever/1fa02210a916eff5dd378bbc07c0633d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MealList.forEach((item, i, org) => { | |
if (item.length < 5) { | |
const InsertArr = Array(5 - item.length).fill( | |
<MealItemComponent | |
key={i} | |
type="detail" | |
item={'급식정보가\n없습니다'} | |
date={''} | |
today={false} | |
day={''} | |
visibility={false} | |
/>, | |
); | |
org[i] = item.concat(InsertArr); | |
// item = item.concat(InsertArr); | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment