de3b54c1b1d1252a2b827d7c3c9d6da4.json
1.13 KB
{"ast":null,"code":"export default function get(entity, path) {\n var current = entity;\n\n for (var i = 0; i < path.length; i += 1) {\n if (current === null || current === undefined) {\n return undefined;\n }\n\n current = current[path[i]];\n }\n\n return current;\n}","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/rc-util/es/utils/get.js"],"names":["get","entity","path","current","i","length","undefined"],"mappings":"AAAA,eAAe,SAASA,GAAT,CAAaC,MAAb,EAAqBC,IAArB,EAA2B;AACxC,MAAIC,OAAO,GAAGF,MAAd;;AAEA,OAAK,IAAIG,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGF,IAAI,CAACG,MAAzB,EAAiCD,CAAC,IAAI,CAAtC,EAAyC;AACvC,QAAID,OAAO,KAAK,IAAZ,IAAoBA,OAAO,KAAKG,SAApC,EAA+C;AAC7C,aAAOA,SAAP;AACD;;AAEDH,IAAAA,OAAO,GAAGA,OAAO,CAACD,IAAI,CAACE,CAAD,CAAL,CAAjB;AACD;;AAED,SAAOD,OAAP;AACD","sourcesContent":["export default function get(entity, path) {\n var current = entity;\n\n for (var i = 0; i < path.length; i += 1) {\n if (current === null || current === undefined) {\n return undefined;\n }\n\n current = current[path[i]];\n }\n\n return current;\n}"]},"metadata":{},"sourceType":"module"}