Examples are as follows:
var aaa = { "0":"a", "1":"b", "2":"c", "aa":"d", "4":"e"};alert(aaa .hasOwnProperty(4));//trueThe above simple example of JS judging whether an array key exists (without looping) is all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.