Skip to content

Commit

Permalink
docs(tiny-types): corrected a typo in a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-molak committed Mar 16, 2024
1 parent 4dd4bd2 commit b0ff1df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/objects/isRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ export function isRecord(value: unknown): value is Record<any, any> {
return false;
}

// If has modified constructor
// It has modified constructor
if (value.constructor === undefined) {
return true;
}

// If has modified prototype
// It has modified prototype
if (! isObject(value.constructor.prototype)) {
return false;
}
Expand Down

0 comments on commit b0ff1df

Please sign in to comment.