This file contains hidden or 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
| { | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "(gdb) Launch", | |
| "type": "cppdbg", | |
| "request": "launch", |
This file contains hidden or 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
| /* JavaScript ES6 | |
| * This function takes in an array, and flattens any nested arrays, while | |
| * maintaining internal order. It then outputs this as a new array, keeping the | |
| * old one untouched. | |
| */ | |
| function FlattenArrays(baseArray) { | |
| if (!Array.isArray(baseArray)) { | |
| throw new TypeError('You did not provide an array.'); | |
| } |