Created
September 21, 2017 10:37
-
-
Save Krknv/853a3ad656a42dec070fbd230f555c0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// map function for objects (instead of arrays) | |
this.fileNames = Object.keys(items).map(function(index, item) { | |
return items[index].name; | |
}).join(', '); | |
// https://stackoverflow.com/questions/14810506/map-function-for-objects-instead-of-arrays | |
// https://stackoverflow.com/questions/16607557/javascript-perform-join-on-value-in-object-array |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment