2.9.12 • Published 4 years ago

@extra-array/merge.min v2.9.12

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Merges values from sorted iterables. :running: :package: :ledger:

Similar: sort, merge. This is part of package extra-array.

This is browserified, minified version of @extra-array/merge. It is exported as global variable array_merge. CDN: unpkg, jsDelivr.

array.merge(xs, [fc], [fm]);
// xs: iterables
// fc: compare function (a, b)
// fm: map function (v, i, x)
const array = require('extra-array');

var x = [1, 3, 5, 7];
var y = [2, 4, 8];
array.merge([x, y]);
// [
//   1, 2, 3, 4,
//   5, 7, 8
// ]

var y = [-2, -4, -8];
array.merge([x, y], (a, b) => Math.abs(a) - Math.abs(b));
// [
//   1, -2,  3, -4,
//   5,  7, -8
// ]

array.merge([x, y], null, v => Math.abs(v));
// [
//   1, -2,  3, -4,
//   5,  7, -8
// ]

references

2.9.12

4 years ago

2.9.10

4 years ago

2.9.11

4 years ago

2.9.9

4 years ago

2.9.2

4 years ago

2.9.4

4 years ago

2.9.3

4 years ago

2.9.6

4 years ago

2.9.5

4 years ago

2.9.8

4 years ago

2.9.7

4 years ago

2.9.0

4 years ago

2.9.1

4 years ago

2.8.76

4 years ago

2.8.75

4 years ago

2.8.74

4 years ago

2.8.73

4 years ago

2.8.72

4 years ago

2.8.71

4 years ago

2.8.70

4 years ago

2.8.52

4 years ago

2.8.51

4 years ago

2.8.50

4 years ago

2.8.56

4 years ago

2.8.55

4 years ago

2.8.54

4 years ago

2.8.53

4 years ago

2.8.59

4 years ago

2.8.58

4 years ago

2.8.57

4 years ago

2.8.62

4 years ago

2.8.61

4 years ago

2.8.60

4 years ago

2.8.67

4 years ago

2.8.45

4 years ago

2.8.66

4 years ago

2.8.65

4 years ago

2.8.64

4 years ago

2.8.49

4 years ago

2.8.48

4 years ago

2.8.69

4 years ago

2.8.47

4 years ago

2.8.46

4 years ago

2.8.44

4 years ago

2.8.43

4 years ago

2.8.42

4 years ago

2.8.41

4 years ago

2.8.40

4 years ago

2.8.39

4 years ago

2.8.38

4 years ago

2.8.37

4 years ago

2.8.36

4 years ago

2.8.35

4 years ago

2.8.34

4 years ago

2.8.33

4 years ago