Created
February 11, 2015 03:00
-
-
Save grantstandridge/3efb3277a5d7a4f488c4 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
function doThis(array, cb) { | |
var thisArray = array; | |
cb.apply( [{'original-array':thisArray}, {'new-array':thisArray.push(4,5,6)}] ); | |
} | |
var doneIt = function doneIt() { | |
console.log(this); | |
} | |
doThis([1,2,3], doneIt); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment