New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@ds-javascript/sort

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ds-javascript/sort

Sorting algorithms in Javascript

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@ds-javascript/sort

Usage

const Sort = require('@ds-javascript/sort');
const sort = new Sort()

.bubble(array) It performs bubble sort on given array and returns sorted array.

sort.bubble([34,51,1,2,3,45,56,687])

.selection(array) It performs selection sort on given array and returns sorted array.

sort.selection([34,51,1,2,3,45,56,687])

.insertion(array) It performs insertion sort on given array and returns sorted array.

sort.insertion([34,51,1,2,3,45,56,687])

.merge(array) It performs merge sort on given array and returns sorted array.

sort.merge([34,51,1,2,3,45,56,687])

.quick(array) It performs quick sort on given array and returns sorted array.

sort.quick([34,51,1,2,3,45,56,687])

Keywords

javascript ds

FAQs

Package last updated on 11 May 2020

Did you know?

Socket

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