Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
drop-merge-sort
Advanced tools
This is a javascript implementation of drop-merge sort algorithm, originally seen on: https://github.com/emilk/drop-merge-sort
##Installation
npm install drop-merge-sort
###Usage
###Example
var dmsort = require('drop-merge-sort');
var compareFunction = function(elem1, elem2) {
return elem1 - elem2;// asc sort
};
var array = [20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19];
array = dmsort(array, compareFunction);//desc sort
console.log(array);
##API
####dmsort(array, [compareFunction])
array
: object like arraycompareFunction(elem1, elem2)
: function for comparing two elem of iterable
elem1 - elem2
Quicksort and Mergesort used in here are taken from https://github.com/mgechev/javascript-algorithms
Go there for details on the algorithm itself.
##Benchmarks
FAQs
Drop-merge sorting algorithm
The npm package drop-merge-sort receives a total of 2 weekly downloads. As such, drop-merge-sort popularity was classified as not popular.
We found that drop-merge-sort demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.