daily pastebin goal
89%
SHARE
TWEET

Untitled

a guest Oct 21st, 2018 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function arrayToList(array) {
  2.     list = null;
  3.     arrlength = array.length;
  4.     for(let i = arrlength-1; i >= 0;i--) {
  5.         list = { value: array[i], rest: list };
  6.     }
  7.     return list;
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top