Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: tracing/tracing/base/iteration_helpers.html

Issue 2526613002: Return short-hand object literals to exportTo. (Closed)
Patch Set: . Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2014 The Chromium Authors. All rights reserved. 3 Copyright (c) 2014 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/base/base.html"> 8 <link rel="import" href="/tracing/base/base.html">
9 9
10 <script> 10 <script>
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 368
369 /** Returns the values in an ES6 Map object. */ 369 /** Returns the values in an ES6 Map object. */
370 function mapValues(map) { 370 function mapValues(map) {
371 var values = []; 371 var values = [];
372 for (var value of map.values()) 372 for (var value of map.values())
373 values.push(value); 373 values.push(value);
374 return values; 374 return values;
375 } 375 }
376 376
377 return { 377 return {
378 asArray: asArray, 378 asArray,
379 concatenateObjects: concatenateObjects, 379 concatenateObjects,
380 compareArrays: compareArrays, 380 compareArrays,
381 comparePossiblyUndefinedValues: comparePossiblyUndefinedValues, 381 comparePossiblyUndefinedValues,
382 dictionaryLength: dictionaryLength, 382 dictionaryLength,
383 dictionaryValues: dictionaryValues, 383 dictionaryValues,
384 dictionaryContainsValue: dictionaryContainsValue, 384 dictionaryContainsValue,
385 getOnlyElement: getOnlyElement, 385 getOnlyElement,
386 getFirstElement: getFirstElement, 386 getFirstElement,
387 group: group, 387 group,
388 groupIntoMap: groupIntoMap, 388 groupIntoMap,
389 iterItems: iterItems, 389 iterItems,
390 mapItems: mapItems, 390 mapItems,
391 filterItems: filterItems, 391 filterItems,
392 iterObjectFieldsRecursively: iterObjectFieldsRecursively, 392 iterObjectFieldsRecursively,
393 invertArrayOfDicts: invertArrayOfDicts, 393 invertArrayOfDicts,
394 arrayToDict: arrayToDict, 394 arrayToDict,
395 identity: identity, 395 identity,
396 findFirstIndexInArray: findFirstIndexInArray, 396 findFirstIndexInArray,
397 findFirstInArray: findFirstInArray, 397 findFirstInArray,
398 findFirstKeyInDictMatching: findFirstKeyInDictMatching, 398 findFirstKeyInDictMatching,
399 mapValues: mapValues 399 mapValues,
400 }; 400 };
401 }); 401 });
402 </script> 402 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698