{"size": 267, "ext": "js", "max_stars_repo_path": "test/array/sort.js", "max_stars_repo_name": "abstract-tools/a-to-b", "max_stars_repo_stars_event_min_datetime": "2018-04-10T17:25:26.000Z", "max_stars_repo_stars_event_max_datetime": "2018-05-11T15:57:46.000Z", "max_issues_repo_path": "test/array/sort.js", "max_issues_repo_name": "abstract-tools/a-to-b", "max_issues_repo_issues_event_min_datetime": "2021-05-06T23:26:30.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-06T23:26:30.000Z", "max_forks_repo_path": "test/array/sort.js", "max_forks_repo_name": "abstract-tools/a-to-b", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 20.5384615385, "max_line_length": 57, "alphanum_fraction": 0.5505617978}
const test = require('tape')
const { sort } = require('../../array')

test('array sort: sort without mutating original', t => {
  const arr = [1, 39, 5]
  const result = sort((a, b) => a - b)(arr)

  t.same(result, [1, 5, 39])
  t.same(arr, [1, 39, 5])

  t.end()
})
