Skip to content

Instantly share code, notes, and snippets.

View MrNice's full-sized avatar

Nicholas van de Walle MrNice

View GitHub Profile
var dict = require('dictionary');
var solveJumble = function (string) {
'use strict';
var originalBag = string.split('');
var anagrams = [];
var findAnagrams = function (bag, word) {
var tempBag, tempWord;
for (var i = 0; i < bag.length; i++) {
tempBag = bag.slice();