How do i create properties of an object from values of other variables without using the eval() function?
2
-
possible duplicate of Dynamically name a JSON propertyIgnacio Vazquez-Abrams– Ignacio Vazquez-Abrams2011-08-16 06:47:42 +00:00Commented Aug 16, 2011 at 6:47
-
2I wouldn't agree that this is a duplicate; wildly different roots for this question, though they're ultimately the same solution. Leaving this Question means a bunch of people find it who might not find the other.coreyward– coreyward2011-08-16 06:50:05 +00:00Commented Aug 16, 2011 at 6:50
Add a comment
|