-
Notifications
You must be signed in to change notification settings - Fork 1
reverse
Subhajit Sahu edited this page Feb 3, 2021
·
17 revisions
Reverse the values.
function reverse(x)
// x: an iterable
const xiterable = require('extra-iterable');
var x = [1, 2, 3, 4];
[...xiterable.reverse(x)];
// → [4, 3, 2, 1]