Convert an array to Singly Linked List
npm install array-to-linkedlist> Convert an array to Singly Linked List.

Install with npm:
``sh`
$ npm install array-to-linkedlist --save
Convert an array to Singly Linked List, access next node by .next and data by .data
`js
var arrayToLinkedlist = require('array-to-linkedlist');
arrayToLinkedlist([1,2,3]);
//=>Node { data: 1, next: Node { data: 2, next: Node { data: 3, next: null } } }
`
`js`
arrayToLinkedlist(array);
* array: {Array} The Array to be converted into Singly Linked List.
`js
var arrayToLinkedlist = require('array-to-linkedlist');
var array = [1,2,3];
var list = arrayToLinkedlist(array);
// Returns head of the linked list
console.log(list);
// Return data of the head node
console.log(list.data));
// Return data of the next node
console.log(list.next.data);
// Return all data
while(list){
console.log(list.data);
list = list.next;
}
`
Install dev dependencies and run test:
`sh``
$ npm install -d && npm test
Apurva Patel
Copyright © 2016, Apurva Patel.
Released under the MIT license.
*