Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NebzHB authored Jan 28, 2024
1 parent 64de579 commit 57ea66f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6604,6 +6604,6 @@ function RGBtoHSV(r, g, b) {
// -- id : id to find
// -- Return : Object found
function findMyID(obj, id) {
if (!obj) return -1;
if (!obj) {return -1;}
return Object.values(obj).find((item) => item && item.id == id) || -1;
}

0 comments on commit 57ea66f

Please sign in to comment.