Skip to content

Commit

Permalink
Remove unnecessary function
Browse files Browse the repository at this point in the history
PR-URL: #452
  • Loading branch information
tr3nbolon3 authored and tshemsedinov committed Jul 29, 2023
1 parent c58eaa1 commit eeac141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const checks = {
},
};

const firstKey = (obj) => Object.keys(obj).find((key) => isFirstLetter(key));
const firstKey = (obj) => Object.keys(obj).find(isFirstLetter);

const isInstanceOf = (obj, constrName) => obj?.constructor?.name === constrName;

Expand Down

0 comments on commit eeac141

Please sign in to comment.