extra-array
Advanced tools
Comparing version
22
index.js
@@ -219,6 +219,6 @@ 'use strict'; | ||
} | ||
function sortRange(x, i, I, fc = null, fm = null, fs = null) { | ||
return sortRange$(x.slice(), i, I, fc, fm, fs); | ||
function rangedSort(x, i, I, fc = null, fm = null, fs = null) { | ||
return rangedSort$(x.slice(), i, I, fc, fm, fs); | ||
} | ||
function sortRange$(x, i, I, fc = null, fm = null, fs = null) { | ||
function rangedSort$(x, i, I, fc = null, fm = null, fs = null) { | ||
var fc = fc || COMPARE; | ||
@@ -234,8 +234,8 @@ var fm = fm || IDENTITY; | ||
function partialSort$(x, n, fc = null, fm = null, fs = null) { | ||
return partialSortRange$(x, 0, x.length, n, fc, fm, fs); | ||
return rangedPartialSort$(x, 0, x.length, n, fc, fm, fs); | ||
} | ||
function partialSortRange(x, i, I, n, fc = null, fm = null, fs = null) { | ||
return partialSortRange$(x.slice(), i, I, n, fc, fm, fs); | ||
function rangedPartialSort(x, i, I, n, fc = null, fm = null, fs = null) { | ||
return rangedPartialSort$(x.slice(), i, I, n, fc, fm, fs); | ||
} | ||
function partialSortRange$(x, i, I, n, fc = null, fm = null, fs = null) { | ||
function rangedPartialSort$(x, i, I, n, fc = null, fm = null, fs = null) { | ||
var fc = fc || COMPARE; | ||
@@ -1718,4 +1718,2 @@ var fm = fm || IDENTITY; | ||
exports.partialSort$ = partialSort$; | ||
exports.partialSortRange = partialSortRange; | ||
exports.partialSortRange$ = partialSortRange$; | ||
exports.partition = partition; | ||
@@ -1753,2 +1751,6 @@ exports.partitionAs = partitionEach; | ||
exports.rangeEntries = rangeEntries; | ||
exports.rangedPartialSort = rangedPartialSort; | ||
exports.rangedPartialSort$ = rangedPartialSort$; | ||
exports.rangedSort = rangedSort; | ||
exports.rangedSort$ = rangedSort$; | ||
exports.reduce = reduce; | ||
@@ -1805,4 +1807,2 @@ exports.reduceRight = reduceRight; | ||
exports.sort$ = sort$; | ||
exports.sortRange = sortRange; | ||
exports.sortRange$ = sortRange$; | ||
exports.splice = splice; | ||
@@ -1809,0 +1809,0 @@ exports.splice$ = splice$; |
{ | ||
"name": "extra-array", | ||
"version": "4.1.10", | ||
"version": "4.1.11", | ||
"description": "An array is a collection of values, stored contiguously.", | ||
@@ -192,4 +192,2 @@ "main": "index.js", | ||
"partialSort$", | ||
"partialSortRange", | ||
"partialSortRange$", | ||
"partition", | ||
@@ -212,2 +210,6 @@ "partitionEach", | ||
"rangeEntries", | ||
"rangedPartialSort", | ||
"rangedPartialSort$", | ||
"rangedSort", | ||
"rangedSort$", | ||
"reduce", | ||
@@ -259,4 +261,2 @@ "reduceRight", | ||
"sort$", | ||
"sortRange", | ||
"sortRange$", | ||
"splice", | ||
@@ -263,0 +263,0 @@ "splice$", |
@@ -11,3 +11,2 @@ An [array] is a collection of values, stored contiguously.<br> | ||
<br> | ||
<br> | ||
@@ -14,0 +13,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
190557
0.02%502
-0.2%