Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mifkata committed Apr 24, 2020
1 parent 17995e3 commit fa6d602
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions utils/JsonOutput.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ class JsonOutput {
}

getKeys() {
const keys = this.options.head.map(this.toKebabCase);
return keys;
return this.options.head.map(this.toKebabCase);
}

toKebabCase(str) {
return str.toLowerCase()
.replace(/ {1,}/gi, '-')
.replace(/\(|\)/gi, '');
.replace(/ {1,}/g, '-')
.replace(/\(|\)/g, '');
}

push(value) {
Expand Down

0 comments on commit fa6d602

Please sign in to comment.