[javascript] find value with array’s key
1 min readFeb 2, 2020
for example,
const a = {a:"c", b:"a", c:"b"}console.log(a["b"])
// "a"
actually, I did’t know it can use find value with key(type is string).
I think it is pretty usefull!
for example,
const a = {a:"c", b:"a", c:"b"}console.log(a["b"])
// "a"
actually, I did’t know it can use find value with key(type is string).
I think it is pretty usefull!