Skip to content

Commit

Permalink
undo, wrong branch
Browse files Browse the repository at this point in the history
  • Loading branch information
robertandremitchell committed Oct 22, 2024
1 parent 33d2069 commit 61b4e16
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ type Lengthwise = {
length: number;
};

function isLengthwise(thing: unknown): thing is Lengthwise {
return typeof thing === "object" && thing !== null && "length" in thing;
function isLengthwise(thing: any): thing is Lengthwise {
return thing?.length !== undefined;
}

/**
Expand Down

0 comments on commit 61b4e16

Please sign in to comment.