From 5c22f44930f051ee6ea50d0a11816c5b6380bc33 Mon Sep 17 00:00:00 2001 From: Jerko Steiner Date: Mon, 25 Mar 2019 13:20:03 +0800 Subject: [PATCH] Use === in without.ts --- packages/common/src/without.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/common/src/without.ts b/packages/common/src/without.ts index 50553a5..e521bc6 100644 --- a/packages/common/src/without.ts +++ b/packages/common/src/without.ts @@ -3,8 +3,7 @@ export function without, K extends keyof R>( key: K, ): Pick> { return Object.keys(items).reduce((obj, k) => { - // tslint:disable-next-line - if (key == k) { + if (key === k) { return obj } (obj as any)[k] = items[k]