If you don’t need to support old browsers (including IE, unfortunately), you can use Array.from, which was added to ES6:
var array = Array.from(floatarr);
This now works in the new releases of every browser (except IE), and it works on all major mobile browsers too.