Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Array.isArray is deprecated now? [closed]

I'm coding TypeScript on WebStorm IDE. The IDE tells that the method Array.isArray is deprecated (like in the image), and I doubt it. Also, I couldn't find information about it

let items: any[] = Array.isArray(jsonData.items) ? jsonData.items : [];

enter image description here

is Array.isArray really deprecated? Thanks

like image 691
Alex Gor Avatar asked Oct 24 '25 14:10

Alex Gor


1 Answers

Array.isArray appears in the latest draft specification where it is not marked as deprecated.

like image 135
Quentin Avatar answered Oct 27 '25 04:10

Quentin