diff --git a/packages/inquirer/lib/ui/prompt.js b/packages/inquirer/lib/ui/prompt.js index be26ea8ba..ec60e7ea7 100644 --- a/packages/inquirer/lib/ui/prompt.js +++ b/packages/inquirer/lib/ui/prompt.js @@ -13,7 +13,7 @@ const _ = { pointer = pointer[key]; }); }, - get: (obj, path, defaultValue) => { + get: (obj, path = '', defaultValue) => { const travel = (regexp) => String.prototype.split .call(path, regexp)