Array contains() or IndexOf in Jquery

To get index of or check if object on array Jquery use :
$.inArray(value, array)
It returns the index of a value in an array. It returns -1 if the array does not contain the value.

Comments

Popular posts from this blog

C# Crop white space from around the image

Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=xx.0.0.0, Culture=neutral, PublicKeyToken='xxx' or one of its dependencies.

The specified version string contains wildcards, which are not compatible with determinism.