-
Couldn't load subscription status.
- Fork 5
getAll
Subhajit Sahu edited this page Mar 17, 2020
·
29 revisions
Gets value at indices (+ve, -ve).
array.getAll(x, is);
// x: an array
// is: indices (-ve: from right)
// --> [...values]const array = require('extra-array');
var x = [2, 4, 6, 8];
array.get(x, 1);
// 4
array.get(x, -1);
// 8