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 985c79e commit f93b9df
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6604,5 +6604,12 @@ function RGBtoHSV(r, g, b) {
// -- id : id to find
// -- Return : Object found
function findMyID(obj, id) {
return Object.values(obj).find((item) => item && item.id == id) || -1;
//return Object.values(obj).find((item) => item && item.id == id) || -1;

Check failure on line 6607 in index.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Expected space or tab after '//' in comment

Check failure on line 6607 in index.js

View workflow job for this annotation

GitHub Actions / build (20.x)

Expected space or tab after '//' in comment

Check failure on line 6607 in index.js

View workflow job for this annotation

GitHub Actions / build (21.x)

Expected space or tab after '//' in comment
for(const o in obj) {
// if( obj.hasOwnProperty( o ) && obj[o] && obj[o].id && parseInt(obj[o].id) && parseInt(id) && parseInt(obj[o].id)==parseInt(id)) {

Check failure on line 6609 in index.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Mixed spaces and tabs

Check failure on line 6609 in index.js

View workflow job for this annotation

GitHub Actions / build (20.x)

Mixed spaces and tabs

Check failure on line 6609 in index.js

View workflow job for this annotation

GitHub Actions / build (21.x)

Mixed spaces and tabs
if( obj.hasOwnProperty( o ) && obj[o] && obj[o].id && obj[o].id==id) {
return obj[o];
}
}
return -1;
}

0 comments on commit f93b9df

Please sign in to comment.