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 4
4
import Reference from './reference.js' ;
5
5
6
6
export 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 [ ] ;
13
13
14
14
ref : Object ;
15
15
key : string ;
@@ -21,8 +21,8 @@ export default class Snapshot {
21
21
childKeys : Array < string > ;
22
22
23
23
constructor ( ref : Reference , snapshot : Object ) {
24
- this . ref = ref ;
25
- this . key = snapshot . key ;
24
+ this . ref = ref ;
25
+ this . key = snapshot . key ;
26
26
this . value = snapshot . value ;
27
27
this . exists = snapshot . exists || true ;
28
28
this . priority = snapshot . priority ;
@@ -41,7 +41,7 @@ export default class Snapshot {
41
41
}
42
42
43
43
map ( fn : ( key : string ) = > mixed ) {
44
- let arr = [ ] ;
44
+ const arr = [ ] ;
45
45
this . forEach ( item => arr . push ( fn ( item ) ) ) ;
46
46
return arr ;
47
47
}
You can’t perform that action at this time.
0 commit comments