Skip to content

Instantly share code, notes, and snippets.

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));
@imfeng
imfeng / taiwan_county_city_zipcode.js
Last active June 21, 2020 09:16
2020台灣縣市郵遞區號 JS
export const CountyList = [
{
'label': '臺北市',
'value': '臺北市',
'children': [
{
'label': '中正區',
'value': '中正區',
'code': '100'
},