source: node_modules/d3-array/src/reverse.js@ e4c61dd

Last change on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Prototype 1.1

  • Property mode set to 100644
File size: 183 bytes
Line 
1export default function reverse(values) {
2 if (typeof values[Symbol.iterator] !== "function") throw new TypeError("values is not iterable");
3 return Array.from(values).reverse();
4}
Note: See TracBrowser for help on using the repository browser.