Last active
August 24, 2018 16:48
-
-
Save JimmySorza/c795b9dc313d1c9596235d82d81895ce to your computer and use it in GitHub Desktop.
// source https://jsbin.com/tififaf
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
let arr = [ | |
"numero 1", | |
"numero 2", | |
["numero", "numero_"], | |
[ | |
"numero 3", | |
[ | |
"numero 4", | |
"numero 5", | |
["numero 6"] | |
], | |
[ | |
"numero 7", | |
function curry(x) { | |
let arr2 = [ | |
"numero 14", | |
"numero 16", | |
["numero 17", "numero 18"], | |
["numero 19", ["numero 21"]] | |
] | |
return function (y) { | |
return arr2[y][x] | |
} | |
} | |
], | |
[ | |
"numero 9", | |
[ | |
{ | |
"numero10": { | |
"numero11": ["numero 13"] | |
} | |
} | |
] | |
] | |
] | |
] | |
console.log(arr[3][2][1](1)(3)[0]) | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">let arr = [ | |
"numero 1", | |
"numero 2", | |
["numero", "numero_"], | |
[ | |
"numero 3", | |
[ | |
"numero 4", | |
"numero 5", | |
["numero 6"] | |
], | |
[ | |
"numero 7", | |
function curry(x) { | |
let arr2 = [ | |
"numero 14", | |
"numero 16", | |
["numero 17", "numero 18"], | |
["numero 19", ["numero 21"]] | |
] | |
return function (y) { | |
return arr2[y][x] | |
} | |
} | |
], | |
[ | |
"numero 9", | |
[ | |
{ | |
"numero10": { | |
"numero11": ["numero 13"] | |
} | |
} | |
] | |
] | |
] | |
] | |
console.log(arr[3][2][1](1)(3)[0]) | |
</script></body> | |
</html> |
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
let arr = [ | |
"numero 1", | |
"numero 2", | |
["numero", "numero_"], | |
[ | |
"numero 3", | |
[ | |
"numero 4", | |
"numero 5", | |
["numero 6"] | |
], | |
[ | |
"numero 7", | |
function curry(x) { | |
let arr2 = [ | |
"numero 14", | |
"numero 16", | |
["numero 17", "numero 18"], | |
["numero 19", ["numero 21"]] | |
] | |
return function (y) { | |
return arr2[y][x] | |
} | |
} | |
], | |
[ | |
"numero 9", | |
[ | |
{ | |
"numero10": { | |
"numero11": ["numero 13"] | |
} | |
} | |
] | |
] | |
] | |
] | |
console.log(arr[3][2][1](1)(3)[0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
one more exercise of @arleyhr