I need assistance with converting the code snippet below as I suspect it is related to an ES5/ES6 compatibility issue. Any help would be highly appreciated.
this.rows = Array.from(Array(Math.ceil(this.subCategoryModels.length / 3)).keys());
Upon attempting this conversion, I encountered TypeScript errors:
[ts]
Property 'from' does not exist on type 'ArrayConstructor'.
any
as well as
[ts]
Property 'keys' does not exist on type 'any[]'.
any