using spread operator to convert array into objects

welcome to shbcf.ru