This is a simple JavaScript function which allows you to get and set deeply nested values from objects.
npm install deepnested
Usage
;
Now that nested has been imported in to your project you're able to start getting and settings deeply nested object values
Get Values
var team =tom:name: 'Tom'age: 26position: 'Developer'team:title: 'Product Page'members: 'nick' 'tom' 'nicole'employed: truenicole:name: 'Nicole'age: 21position: 'Tester'nick:name: 'Nick'age: 400position: 'Colour-inner';var teamTitle = ; // Product Page
Set Values
You can use nested to overwrite values in your object
;var employed = ; // Now equal to false