Replace '_.keys' to 'Object.prototype.keys'

This commit is contained in:
Hongarc 2018-12-01 08:29:11 +07:00
parent dddf063146
commit ce61c97cf0
3 changed files with 3 additions and 4 deletions

View file

@ -89,7 +89,7 @@ AppConstants.StoreSubscribePrototype,
},
getSequences: function() {
return _.keys(levelSequences);
return Object.keys(levelSequences);
},
getLevelsInSequence: function(sequenceName) {

View file

@ -295,7 +295,7 @@ var MultiViewBuilder = ContainedBase.extend({
this.JSON = {
views: this.getChildViews(),
supportedViews: _.keys(this.typeToConstructor)
supportedViews: Object.keys(this.typeToConstructor)
};
this.container = new ModalTerminal({
@ -416,4 +416,3 @@ exports.DemonstrationBuilder = DemonstrationBuilder;
exports.TextGrabber = TextGrabber;
exports.MultiViewBuilder = MultiViewBuilder;
exports.MarkdownPresenter = MarkdownPresenter;

View file

@ -78,7 +78,7 @@ var InteractiveRebaseView = ContainedBase.extend({
render: function() {
var json = {
num: _.keys(this.rebaseMap).length,
num: Object.keys(this.rebaseMap).length,
solutionOrder: this.options.initialCommitOrdering
};