const arrLike = document.getElementsByTag('div');
let arr;

// es5
arr = Array.prototype.slice.call(arrLike);

// es6
arr = [...arrLike];
arr = Array.from(arrLike);