We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to build deep arrays like so?
{ "data": { "title": "crawler vs scraper", "products": [ "123": [ "name": "running shoe", ], "456": [ "name": "climbing shoe", ] ] } }
If so, could you provide some example code? Thanks!
The text was updated successfully, but these errors were encountered:
Hello @drewbaker. Yes, it's possible.
You can use jquery .map to get values from DOM:
// very simple example $('.list').map(function(val) { return { id: $(this).find('.id').text(), name: $(this).find('.name').text() } })
And later transform that with lodash mapKeys https://lodash.com/docs/4.17.4#mapKeys
mapKeys
Sorry, something went wrong.
No branches or pull requests
Is it possible to build deep arrays like so?
If so, could you provide some example code? Thanks!
The text was updated successfully, but these errors were encountered: