diff --git a/src/object/omit.ts b/src/object/omit.ts index 0792157c..c21594c6 100644 --- a/src/object/omit.ts +++ b/src/object/omit.ts @@ -15,7 +15,7 @@ * const result = omit(obj, ['b', 'c']); * // result will be { a: 1 } */ -export function omit, K extends keyof T>(obj: T, keys: K[]): Omit { +export function omit, K extends keyof T>(obj: T, keys: readonly K[]): Omit { const result = { ...obj }; for (const key of keys) {