4

They seem to be the same.

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

Sagar V
  • 11,606
  • 7
  • 43
  • 64
Victor Dombrovsky
  • 2,525
  • 2
  • 17
  • 31

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,914
  • 8
  • 48
  • 57
3

There is no difference.

jQuery just prototype the JavaScript's native isArray function.

something that will look like-

jQuery.prototype.isArray = Array.isArray;
Anant Kumar Singh
  • 68,309
  • 10
  • 50
  • 94
Sagar V
  • 11,606
  • 7
  • 43
  • 64