electron-settings icon indicating copy to clipboard operation
electron-settings copied to clipboard

defaultValue missing in breaking changes list

Open julianhille opened this issue 4 years ago • 2 comments

There was once a defaultValue when using get this has been removed and is not added at the breaking changes list.

julianhille avatar Oct 26 '20 13:10 julianhille

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. :(

Mjinx avatar Dec 22 '20 10:12 Mjinx

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);

Style87 avatar Feb 09 '21 17:02 Style87