Skip to content
Advertisement

How to get element of array with string index path

I have an array and I have a path to a specific element.

JavaScript

Is it possible somehow to display an element using a string path?

Advertisement

Answer

You could take a dynamic approach for an length of the path.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement