From 9348d06f105782be004cbbe0698153bd36142ba6 Mon Sep 17 00:00:00 2001 From: cha0s Date: Fri, 5 Feb 2021 19:11:10 -0600 Subject: [PATCH] feat: default value --- packages/core/src/latus.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/latus.js b/packages/core/src/latus.js index 503064d..41dec8c 100644 --- a/packages/core/src/latus.js +++ b/packages/core/src/latus.js @@ -70,8 +70,8 @@ export default class Latus { }); } - get(path) { - return get(this.config, path); + get(path, defaultValue) { + return get(this.config, path, defaultValue); } invoke(hook, ...args) {