Toarray Javascript

const collect = require('collect.js'); 
  
let arr = ['kripa', 'biltu', 'chinu', 1, 2, 3]; 
    
const collection = collect(arr); 
    
const newObject = collection.toArray(); 
  
console.log(newObject);
CodeCat