Gets values from middle.
Alternatives: middle, middle$.
Similar: left, middle, right.
This is part of package extra-array.
This is browserified, minified version of @extra-array/middle-update.
It is exported as global variable array_middle$.
CDN: unpkg, jsDelivr.
array.middle$(x, [i], [n]);
// x: an array (updated)
// i: start index (0)
// n: number of values (1)
// --> x
const array = require('extra-array');
var x = [1, 2, 3];
array.middle$(x, 1, 1);
// [ 2 ]
x;
// [ 2 ]
var x = [1, 2, 3];
array.middle$(x, 1, 2);
// [ 2, 3 ]