From 3dd064ae962597b5c6660a541c3d863e09db4659 Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Sat, 3 Nov 2018 22:29:34 +0700 Subject: [PATCH] Fix bug with expanding null var --- fx.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fx.js b/fx.js index 974a6c6..1ea78fd 100644 --- a/fx.js +++ b/fx.js @@ -89,6 +89,10 @@ module.exports = function start(input) { }) function walk(v, cb, path = '') { + if (!v) { + return + } + if (Array.isArray(v)) { cb(path) let i = 0