@any86/load-image
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

@any86/quick-sort

NPM Version

快速排序, 原地排序, 非递归版本.

安装

npm i -S @any86/quick-sort

快速开始

import qSort from '@any86/quick-sort';

// 正序排列
const array1 = [100,1,99];
const arraySorted = qSort(array);

// 倒序排列, 指定排序的字段
const array1 = [{a:100},{a:1},{a:99}];
const array1Sorted = qSort(array1, (a,b)=>b.a-a.a);

Readme

Keywords

Package Sidebar

Install

npm i @any86/load-image

Weekly Downloads

2

Version

0.0.1

License

ISC

Unpacked Size

14.2 kB

Total Files

9

Last publish

Collaborators

  • russell-ne