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
const rows = 3; | |
const columns = 2; | |
console.log('1. Recursive version'); | |
recusive2DArray(rows, columns, (i, j) => console.log(i, j)); | |
console.log('2. While loop version'); | |
while2DArray(rows, columns, (i, j) => console.log(i, j)); | |
console.log('3. For loop version'); | |
forloop2DArray(rows, columns, (i, j) => console.log(i, j)); |
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
export const CountyList = [ | |
{ | |
'label': '臺北市', | |
'value': '臺北市', | |
'children': [ | |
{ | |
'label': '中正區', | |
'value': '中正區', | |
'code': '100' | |
}, |