electron-settings
electron-settings copied to clipboard
defaultValue missing in breaking changes list
There was once a defaultValue when using get
this has been removed and is not added at the breaking changes list.
I second that, after a bit of a head scratch realized there's no reference to defaultValue in source code even though the lodash.get does support default values. :(
I actually just came here to request this feature. I've written a lot of settings.hasSync(key) ? settings.getSync(key) : defaultValue; and it would be great to change that out with settings.getSync(key, defaultValue);