Skip to content

Instantly share code, notes, and snippets.

@WDever
Created July 5, 2019 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WDever/1fa02210a916eff5dd378bbc07c0633d to your computer and use it in GitHub Desktop.
Save WDever/1fa02210a916eff5dd378bbc07c0633d to your computer and use it in GitHub Desktop.
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