Skip to content

Commit e6aedd8

Browse files
committed
add a function to return sorted Object keys to be used by values in plot-schema
1 parent ec01107 commit e6aedd8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/lib/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ lib.roundUp = searchModule.roundUp;
6565
lib.sort = searchModule.sort;
6666
lib.findIndexOfMin = searchModule.findIndexOfMin;
6767

68+
lib.sortedObjectKeys = require('./sorted_object_keys');
69+
6870
var statsModule = require('./stats');
6971
lib.aggNums = statsModule.aggNums;
7072
lib.len = statsModule.len;

src/lib/sorted_object_keys.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
module.exports = function sortedObjectKeys(obj) {
4+
return Object.keys(obj).sort();
5+
};

0 commit comments

Comments
 (0)