Skip to content

Instantly share code, notes, and snippets.

@hanihsdd
hanihsdd / runWithDebugger.js
Last active January 4, 2017 22:49
Beast Challenge 1 – runWithDebugger
function runWithDebugger(callback, callbackArgs) {
debugger;
callback.apply(this, callbackArgs);
}
@hanihsdd
hanihsdd / librarySystem.js
Last active January 6, 2017 09:14
Beast Challenge 2 – librarySystem with dependencies
(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];