Skip to content

Instantly share code, notes, and snippets.

@rista404
Last active April 15, 2017 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rista404/daa8f9ce0ee6779d38062ca5c5a183aa to your computer and use it in GitHub Desktop.
Save rista404/daa8f9ce0ee6779d38062ca5c5a183aa to your computer and use it in GitHub Desktop.
const string = "Danas je lep i suncan dan";
const p = 3, q = 5;
string
.split(' ')
.filter((word) => word.length >= p && word.length <= q)
.forEach(console.log)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment