Dino Directory - courtesy of the Natural History Museum
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
// Beast's origin: https://github.com/gordonmzhu/beasts/issues/2 | |
function runWithDebugger (callback, args) { | |
if (args && !Array.isArray(args)) { | |
throw new TypeError('If callback has any parameters, then pass an array of arguments.'); | |
} | |
debugger; | |
callback.apply(this, args); | |
} |