Skip to content

Commit

Permalink
add missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
rassokhin-s committed Mar 21, 2024
1 parent 77ac5cd commit 9af309b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions utils/obj.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function getKeyByValue (object, value) {
return Object.keys(object).find(key => object[key] === value)
}

module.exports = {
getKeyByValue
}

0 comments on commit 9af309b

Please sign in to comment.