Closed kmvan closed 6 years ago
import { get } from 'lodash' const object = { 'a': [{ 'b': { 'c': 3 } }] } console.log(get(object, 'a[0].b.c')) // output undefined console.log(get(object, 'a')) // output object console.log(get(object, 'a[0]')) // output undefined
Something wrong with my code?
You're probably using this plugin with lodash-webpack-plugin and need to enable a feature set.
Thank you man. And which feature set?
You most likely need to enable the "paths" feature set.
"paths"
Got it. https://github.com/lodash/lodash-webpack-plugin#feature-sets
Something wrong with my code?