@ce1pers/use-sort
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@ce1pers/use-sort

Javascript library to simple sort.

Installation

npm

npm i @ce1pers/use-sort

yarn

yarn add @ce1pers/use-sort

Usage

// Import library.
import { bubble } from "@ce1pers/use-sort";

// For bubble sort test.
const array = [1, 2, 3, 4, 5];

console.time();
const sorted = bubble({ array, order: "descending" });
console.timeEnd();

console.log(array, "=>", sorted); // [1, 2, 3, 4, 5] => [5, 4, 3, 2, 1]

Package Sidebar

Install

npm i @ce1pers/use-sort

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

16.3 kB

Total Files

10

Last publish

Collaborators

  • __coma__