Created
March 5, 2019 23:08
-
-
Save taiypeo/aa662b12155b77907385960c881a9766 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
let last_index = 0; // TODO: check if last_index is in range of videos.length | |
sections.forEach(section => { | |
section.data.forEach(item => { | |
item['video'] = last_index; | |
last_index++; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment