Socket
Socket
Sign inDemoInstall

@charlesstover/quicksort

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @charlesstover/quicksort

An implementation of Quicksort in JavaScript


Version published
Maintainers
1
Install size
5.97 kB
Created

Readme

Source

Quicksort Tweet

An implementation of Quicksort in JavaScript.

A walkthrough of the logic behind Quicksort and development of this package can be found on the Medium article Implementing Quicksort in JavaScript.

version minified size minzipped size downloads build

Install

  • npm install @charlesstover/quicksort --save or
  • yarn add @charlesstover/quicksort

Examples

import quickSort from '@charlesstover/quicksort';
import { expect } from 'chai';

describe('Quicksort', () => {
  it('should sort an array', () => {
    const unsorted = [ 5, 4, 1, 3, 2 ];
    const sorted = quickSort(unsorted);
    expect(sorted).to.deep.equal([ 1, 2, 3, 4, 5 ]);
  });
});

FAQs

Last updated on 13 Feb 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc