Skip to content

Commit

Permalink
bitwised indexOfs
Browse files Browse the repository at this point in the history
  • Loading branch information
honzi committed Sep 14, 2024
1 parent 95f9e0d commit a73c1a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

function calculate(group){
if(group.indexOf('-') !== -1){
if(~group.indexOf('-')){
group = group.substring(
0,
group.indexOf('-')
Expand All @@ -20,7 +20,7 @@ function calculate(group){
'number': value,
});

if(group.indexOf('Temperature') !== -1){
if(~group.indexOf('Temperature')){
let formulae = temperature_formulae(value);

if(input !== units['Temperature']['_default']){
Expand Down

0 comments on commit a73c1a6

Please sign in to comment.