Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranet committed Oct 27, 2024
1 parent d51a8a5 commit c2d8f10
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/utilities/src/lib/hasAtLeastOneKeyInObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ import { isNullish } from './isNullOrUndefined';
* console.log(hasAtLeastOneKeyInObject(obj, ['d'])); // false
* ```
*/
export function hasAtLeastOneKeyInObject<T extends object, K extends PropertyKey>(
obj: T,
keys: readonly K[]
): obj is T & { [key in K]-?: unknown } {
export function hasAtLeastOneKeyInObject<T extends object, K extends PropertyKey>(obj: T, keys: readonly K[]): obj is T & { [key in K]-?: unknown } {
return !isNullish(obj) && keys.some((key) => Object.hasOwn(obj, key));
}

0 comments on commit c2d8f10

Please sign in to comment.