Skip to content Skip to sidebar Skip to footer
Showing posts with the label Indexof

Finding Sub-array Within Array

I have the Array array = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]; and I wa… Read more Finding Sub-array Within Array

Indexof Empty String Is Zero. Why?

why this is happening in javascript? 'abc'.indexOf('a'); //0 'abc'.i… Read more Indexof Empty String Is Zero. Why?