【文件属性】:
文件名称:es6-sorting:使用 ES6 的排序算法
文件大小:201KB
文件格式:ZIP
更新时间:2021-06-01 14:50:21
JavaScript
经典排序算法的 ECMAScript 6 实现。
下载并运行项目
$ git clone https://github.com/timotius02/es6-sorts.git
$ cd es6-sorts
$ npm install
编译和运行测试
Gulp 用于通过 Babel 编译 ES6 代码以及运行测试。 要运行特定测试:
$ gulp < % sortName % >
连续运行所有测试:
$ gulp test
【文件预览】:
es6-sorting-master
----.gitignore(13B)
----package.json(780B)
----mergeSort()
--------index.js(1KB)
--------output.js(90KB)
--------test.js(1KB)
----gulpfile.js(1KB)
----selectionSort()
--------index.js(700B)
--------output.js(88KB)
--------test.js(1KB)
----quickSort()
--------index.js(858B)
--------output.js(88KB)
--------test.js(1KB)
----insertionSort()
--------index.js(613B)
--------output.js(87KB)
--------test.js(1KB)
----heapSort()
--------index.js(3KB)
--------output.js(93KB)
--------test.js(1KB)
----README.md(407B)
----bubbleSort()
--------index.js(592B)
--------output.js(87KB)
--------test.js(1KB)
----countingSort()
--------index.js(673B)
--------output.js(86KB)
--------test.js(879B)
----.editorconfig(232B)