I have this object:
myObj = {
red: "332",
green: "632",
yellow: "14",
brown: "45",
pink: "83",
violet: "21",
gray: "100",
black: "33",
white: "200"
};
I need to calculate and transform these object key values into percentages (on 100%)
Is there a way to do it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…