-
-
Save P0lip/9290aabe6cc4db0feffa89fdd05b826b 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 secondIndex = 0; | |
function elemAtComplex(arr, index) { | |
return arr[secondIndex + index]; | |
} | |
elemAtComplex(['v8 ',' is',' awesome'], 0); | |
secondIndex++; | |
elemAtComplex(['netguru ',' loves',' Node.js'], 1); | |
secondIndex++; | |
%OptimizeFunctionOnNextCall(elemAtComplex); | |
elemAtComplex(['wooo','dooo','dooboo'], 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment