Advertisement
fromorbonia

Simple 2

Dec 13th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Better copy & paste of array:
  2. [
  3. "2019-12-03",
  4. "2019-12-02",
  5. "2019-12-01"
  6. ]
  7. Code:
  8. sorteddaystoshow.sort();
  9. var from = sorteddaystoshow[0];
  10. var to = sorteddaystoshow[1];
  11. if (options.order === report_plugins.consts.ORDER_NEWESTONTOP) {
  12. sorteddaystoshow.reverse();
  13. }
  14. console.warn(loadeddays, sorteddaystoshow.length, sorteddaystoshow, from, to);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement