Created
March 5, 2019 11:26
-
-
Save hassansw/dff335b96514e6e81981fde929272f3a to your computer and use it in GitHub Desktop.
This file contains 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
findShort(s) { | |
try { | |
return Math.min(...s.split(' ').map(o => o.length)); | |
} catch (error) { | |
return null | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment