Lodash project step 10

im currently working through the lodash project and double checking with the video as I go and for the inRange method my code matches the video but I get errors whereas the video does not.

here is the relevant code

inRange(number, start, end){
if (end === undefined) {
end = start
start = 0
} if (start < end){
var temp = end
end = start
start = temp
}
var isInRange = start <= number && number < end
return isInRange
},
};

Should that be, end < start?

i spent longer than i would like to admit looking at that thank you so much

2 Likes