1 | const props = { |
||
2 | |||
3 | checkStorage: function(key){ |
||
4 | if (localStorage.getItem(key).length == 0 ) { |
||
0 ignored issues
–
show
|
|||
5 | return false; |
||
6 | }else{ |
||
7 | return true; |
||
8 | } |
||
9 | } |
||
10 | } |
||
11 | |||
12 | export default props; |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.