From 40af396a6efb0c0fbbef204c314f94d3496bc0bb Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Mon, 13 Sep 2021 12:28:19 -0400 Subject: [PATCH] Implement node._.get --- utils/GunSmith/GunSmith.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/GunSmith/GunSmith.js b/utils/GunSmith/GunSmith.js index 1cd45ac8..23f4a8be 100644 --- a/utils/GunSmith/GunSmith.js +++ b/utils/GunSmith/GunSmith.js @@ -216,7 +216,10 @@ function createReplica(path, afterMap = false) { return { _: { - get: '', + get get() { + const keys = path.split('>') + return keys[keys.length - 1] + }, opt: { // TODO peers: {}