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; }