mp-sort
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

mp-sort

New package to publish on NPM registry

A Node.js module that returns a sorted list

Installation

npm install mp-sort --save
yarn add mp-sort
bower install mp-sort --save

Usage

Javascript

var sort = require("mp-sort");
var sortedList = sort.bubbleSort([3, 6, 5, 1, 4, 2, 8, 9, 7]);
Output should be '[1,2,3,4,5,6,7,8,9]'

TypeScript

import { bubbleSort } from "mp-sort";
console.log(bubbleSort(["Miguel", "Andrea", "Ana", "Julian", "Fernando", "Luis"]));
Output should be ["Ana", "Andrea", "Fernando", "Julian", "Luis", "Miguel"]

AMD

define(function (require, exports, module) {
  var sort = require("mp-sort");
});

Test

npm run test

Readme

Keywords

none

Package Sidebar

Install

npm i mp-sort

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

4.23 kB

Total Files

7

Last publish

Collaborators

  • michaelauditore