{"size": 426, "ext": "js", "max_stars_repo_path": "src/js/view/renderNoteList.js", "max_stars_repo_name": "SergiyMi/FE_Webpack", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/js/view/renderNoteList.js", "max_issues_repo_name": "SergiyMi/FE_Webpack", "max_issues_repo_issues_event_min_datetime": "2021-03-09T15:21:17.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T16:42:42.000Z", "max_forks_repo_path": "src/js/view/renderNoteList.js", "max_forks_repo_name": "SergiyMi/FE_modul10", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 5, "max_forks_count": null, "avg_line_length": 26.625, "max_line_length": 65, "alphanum_fraction": 0.6291079812}
import createListItem from './createListItem';

function renderNoteList(ref, arr) {
    // const newArr = arr.map(el => createListItem(el));
    // ref.innerHTML = '';
    // ref.append(...newArr);

    // ref.innerHTML = '';
    // ref.append(...arr.map(el => createListItem(el)));

    ref.innerHTML = '';
    const newArr = arr.map(el => ref.append(createListItem(el)));
    return newArr;
}

export default renderNoteList;