angular-local-storage icon indicating copy to clipboard operation
angular-local-storage copied to clipboard

remove returns undefined

Open rmammina opened this issue 10 years ago • 4 comments
trafficstars

ensured that the correct key was used. Got an undefined return from the local storage remove function.

rmammina avatar Aug 12 '15 18:08 rmammina

I'm experiencing the same behavior. The documentation states that a boolean should be returned, but I receive undefined as well.

yoooee avatar Jan 06 '16 14:01 yoooee

remove function doesn't return anything. Only clearAll returns something. We can discuss if we should return something in this case.

ealves-pt avatar Feb 17 '16 23:02 ealves-pt

+1 on this.

Could the documentation be updated to reflect this behavior?

liquidcowgithub avatar Apr 19 '16 06:04 liquidcowgithub

I believe that the documentation should be updated, but could be useful if you return a boolean to know if the data has been removed.

oriolpuig avatar Oct 16 '16 13:10 oriolpuig