angular-webstorage icon indicating copy to clipboard operation
angular-webstorage copied to clipboard

Naming of `add()`

Open blowsie opened this issue 12 years ago • 2 comments

If there a reason you opted for add() in the API? I personally think it should be set() and get(). add() almost implies its just for adding , and not updating as well.

blowsie avatar Nov 11 '14 10:11 blowsie

Hi, I also think that .set would be more appropriate as you can add several times the a value to the same property and the result is still the same (no duplication).

timotheemoulin avatar Apr 27 '15 22:04 timotheemoulin

I agree.

fredricrylander avatar Aug 29 '15 11:08 fredricrylander