diff --git a/reach.js b/reach.js index 3dc45c0..660bd6c 100644 --- a/reach.js +++ b/reach.js @@ -1,4 +1,6 @@ export const reach = (path, data) => { + if (!data) return; + const parts = path.split('.'); let part; while (part = parts.shift()) {