Skip to content

Instantly share code, notes, and snippets.

@hanihsdd
hanihsdd / runWithDebugger.js
Last active Jan 4, 2017
Beast Challenge 1 – runWithDebugger
View runWithDebugger.js
function runWithDebugger(callback, callbackArgs) {
debugger;
callback.apply(this, callbackArgs);
}
@hanihsdd
hanihsdd / librarySystem.js
Last active Jan 6, 2017
Beast Challenge 2 – librarySystem with dependencies
View librarySystem.js
(function() {
var libraryStorage = {};
function librarySystem(libraryName, dependencies, callback) {
if (arguments.length > 1) {
if (dependencies.length > 0) {
var dependenciesExistArray = dependencies.map(function(dependency) {
return libraryStorage[dependency];
You can’t perform that action at this time.