4

They seem to be the same.

Internally jQuery just maps its own $.isArray to the native Array.isArray.*

Sagar V
  • 12,158
  • 7
  • 41
  • 68
Victor Dombrovsky
  • 2,955
  • 3
  • 21
  • 33

2 Answers2

9

After further investigation I found this commit where they replaced jQuery.isArray with the native Array.isArray().

They also announced here that $.isArray is officially deprecated.

The function still exist for backward compatibility but I guess it will be dropped completly in a future jQuery release.

Alon Eitan
  • 11,997
  • 8
  • 49
  • 58
3

There is no difference.

jQuery just prototype the JavaScript's native isArray function.

something that will look like-

jQuery.prototype.isArray = Array.isArray;
Alive to die - Anant
  • 70,531
  • 10
  • 51
  • 98
Sagar V
  • 12,158
  • 7
  • 41
  • 68