Created
August 24, 2022 06:15
-
-
Save Octagon-simon/d26123cf22139786479e3c029c9ab7bd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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