Skip to content

Instantly share code, notes, and snippets.

@Octagon-simon
Created August 24, 2022 06:15
Show Gist options
  • Select an option

  • Save Octagon-simon/d26123cf22139786479e3c029c9ab7bd to your computer and use it in GitHub Desktop.

Select an option

Save Octagon-simon/d26123cf22139786479e3c029c9ab7bd to your computer and use it in GitHub Desktop.
function unscramble(word) {
//import dictionary
const dict = require('an-array-of-english-words');
//return the result of our logic
return(
dict.filter( item => {
//check if their lengths are equal
if(item.length === word.length){
//logic continuation here
}
})
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment