Timeline for Using a parameter with a Javascript object?
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 12, 2015 at 16:12 | comment | added | Andy | The OP doesn't assume this because he might decide to pass in a parameter for a keys that doesn't exist yet. I think that's worth mentioning. | |
| Feb 12, 2015 at 16:09 | comment | added | LS_ᴅᴇᴠ | OP post also assumes this. There is no checking in original code. | |
| Feb 12, 2015 at 16:08 | comment | added | Andy | No, it will add 1 to player.stat on the assumption that the key exists. | |
| Feb 12, 2015 at 16:06 | history | answered | LS_ᴅᴇᴠ | CC BY-SA 3.0 |