{"size": 370, "ext": "js", "max_stars_repo_path": "src/sort/bubbleSort/0x00.bak.js", "max_stars_repo_name": "littleLane/Handwritten-Code", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/sort/bubbleSort/0x00.bak.js", "max_issues_repo_name": "littleLane/Handwritten-Code", "max_issues_repo_issues_event_min_datetime": "2020-07-17T03:41:38.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-01T05:53:46.000Z", "max_forks_repo_path": "src/sort/bubbleSort/0x00.bak.js", "max_forks_repo_name": "littleLane/Handwritten-Code", "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": 21.7647058824, "max_line_length": 51, "alphanum_fraction": 0.5054054054}
function bubbleSort(array) {
  const arrayLength = array.length

  for (let i = 0; i < arrayLength; i++) {
    for (let j = 0; j < arrayLength - 1 - i; j++) {
      if (array[j] > array[j + 1]) {
        const temp = array[j]
        array[j] = array[j + 1]
        array[j + 1] = temp
      }
    }
  }

  return array
}

console.log(bubbleSort([5, 1, 3, 2, 1, 10, 4]))