From 8912078ae5e2157f5b78298a2ceb5cdf41518e85 Mon Sep 17 00:00:00 2001 From: Landon Yarrington <33426811+jly36963@users.noreply.github.com> Date: Sun, 15 May 2022 18:58:10 -0600 Subject: [PATCH] refactor: use prototype (#2165) Co-authored-by: Benjamin E. Coe --- lib/yargs-factory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yargs-factory.ts b/lib/yargs-factory.ts index c3f88348f..60c61266e 100644 --- a/lib/yargs-factory.ts +++ b/lib/yargs-factory.ts @@ -389,7 +389,7 @@ export class YargsInstance { let aliases: Dictionary; // Skip coerce logic if related arg was not provided - const shouldCoerce = Object.hasOwnProperty.call(argv, keys); + const shouldCoerce = Object.prototype.hasOwnProperty.call(argv, keys); if (!shouldCoerce) { return argv; }