Skip to content

reverse

Subhajit Sahu edited this page May 17, 2020 · 17 revisions

Reverses the values. 🏃 📼 📦 🌔 📒

iterable.reverse(x);
// x: an iterable
const iterable = require('extra-iterable');

var x = [1, 2, 3, 4];
[...iterable.reverse(x)];
// [4, 3, 2, 1]

references

Clone this wiki locally