标签: jquery arrays color-palette
我有一系列的调色板,如下所示。如何获得基于值的密钥?例如,如何基于值Tomato获取密钥#D50000?
Tomato
#D50000
var arrColorPalette = [{ "Tomato": "#D50000" }, { "Flamingo": "#E67C73" }, { "Tangerine": "#F4511E" }];