Get element of JS object with an index March 31, 2023 by Tarik I know it’s a late answer, but I think this is what OP asked for. myobj[Object.keys(myobj)[0]];