|
|
|
|
|
by mundizzle
5094 days ago
|
|
i generally avoid putting all properties of an object in one the same line in the name of readability and also to avoid the 80 char limit. instead i do something like this. (incorrect trailing commas removed from the previous example) var infos = [
{
name: "red",
value: [255, 0, 0, 255]
},
{
name: "green",
value: [0, 255, 0, 255]
},
{
name: "blue",
value: [0, 0, 255, 255]
}
];
|
|