OLD | NEW |
1 dart_library.library('map_keys', null, /* Imports */[ | 1 dart_library.library('map_keys', null, /* Imports */[ |
2 'dart/_runtime', | 2 'dart_sdk' |
3 'dart/core', | 3 ], function(exports, dart_sdk) { |
4 'dart/math' | |
5 ], /* Lazy imports */[ | |
6 ], function(exports, dart, core, math) { | |
7 'use strict'; | 4 'use strict'; |
8 let dartx = dart.dartx; | 5 const core = dart_sdk.core; |
9 function main() { | 6 const math = dart_sdk.math; |
| 7 const dart = dart_sdk.dart; |
| 8 const dartx = dart_sdk.dartx; |
| 9 const map_keys = Object.create(null); |
| 10 map_keys.main = function() { |
10 core.print(dart.map({'1': 2, '3': 4, '5': 6})); | 11 core.print(dart.map({'1': 2, '3': 4, '5': 6})); |
11 core.print(dart.map([1, 2, 3, 4, 5, 6])); | 12 core.print(dart.map([1, 2, 3, 4, 5, 6])); |
12 core.print(dart.map({'1': 2, [`${dart.notNull(math.Random.new().nextInt(2))
+ 2}`]: 4, '5': 6})); | 13 core.print(dart.map({'1': 2, [`${dart.notNull(math.Random.new().nextInt(2))
+ 2}`]: 4, '5': 6})); |
13 let x = '3'; | 14 let x = '3'; |
14 core.print(dart.map(['1', 2, x, 4, '5', 6])); | 15 core.print(dart.map(['1', 2, x, 4, '5', 6])); |
15 core.print(dart.map(['1', 2, null, 4, '5', 6])); | 16 core.print(dart.map(['1', 2, null, 4, '5', 6])); |
16 } | 17 }; |
17 dart.fn(main); | 18 dart.fn(map_keys.main); |
18 // Exports: | 19 // Exports: |
19 exports.main = main; | 20 exports.map_keys = map_keys; |
20 }); | 21 }); |
| 22 |
21 //# sourceMappingURL=map_keys.js.map | 23 //# sourceMappingURL=map_keys.js.map |
OLD | NEW |