Timeline for Reducing code complexity for UsergridClient constructor
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 29, 2015 at 17:24 | comment | added | brandonscript | I added my final solution to my answer below. Thanks for the suggestions Ben! | |
Nov 29, 2015 at 17:23 | vote | accept | brandonscript | ||
Nov 29, 2015 at 16:44 | comment | added | brandonscript |
Too bad Object.assign is ES6. I'll have to use a library to mimic using (probably) _.extend .
|
|
Nov 29, 2015 at 16:02 | comment | added | brandonscript | Some good tips here thanks! Object.assign will work well. I'll still have to do a check for arguments.length === 2 because it can be initialized using an object or list arguments. I agree self is redundant, but design-consistency makes me want to keep it. And this also doesn't account for loading values from config if they're undefined? | |
Nov 29, 2015 at 13:44 | history | answered | 52d6c6af | CC BY-SA 3.0 |