File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 44import Reference from './reference.js' ;
55
66export default class Snapshot {
7- static key :String ;
8- static value :Object ;
9- static exists :boolean ;
10- static hasChildren :boolean ;
11- static childrenCount :Number ;
12- static childKeys :String [ ] ;
7+ static key : String ;
8+ static value : Object ;
9+ static exists : boolean ;
10+ static hasChildren : boolean ;
11+ static childrenCount : Number ;
12+ static childKeys : String [ ] ;
1313
1414 ref : Object ;
1515 key : string ;
@@ -21,8 +21,8 @@ export default class Snapshot {
2121 childKeys : Array < string > ;
2222
2323 constructor ( ref : Reference , snapshot : Object ) {
24- this . ref = ref ;
25- this . key = snapshot . key ;
24+ this . ref = ref ;
25+ this . key = snapshot . key ;
2626 this . value = snapshot . value ;
2727 this . exists = snapshot . exists || true ;
2828 this . priority = snapshot . priority ;
@@ -41,7 +41,7 @@ export default class Snapshot {
4141 }
4242
4343 map ( fn : ( key : string ) = > mixed ) {
44- let arr = [ ] ;
44+ const arr = [ ] ;
4545 this . forEach ( item => arr . push ( fn ( item ) ) ) ;
4646 return arr ;
4747 }
You can’t perform that action at this time.
0 commit comments