jquery - How to retrive value from array of arrays? -


[["sports","any"],["sports","cricket"],["sports","football"],["sports","other"]] 

if want retrieve cricket that?
how achieve it?

depends on language, expect [1][1] should it.

assuming array called arr arr[1] refers ["sports","cricket"] (0 based index) array, can indentify elements same way usual... using [1] access "cricket"... together: arr[1][1].


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -