Skip to content

Instantly share code, notes, and snippets.

@SolidShake
Created October 25, 2016 11:08
Show Gist options
  • Select an option

  • Save SolidShake/72a9766b1d7cebd9bcf9d4d4478e5cdd to your computer and use it in GitHub Desktop.

Select an option

Save SolidShake/72a9766b1d7cebd9bcf9d4d4478e5cdd to your computer and use it in GitHub Desktop.

Revisions

  1. SolidShake created this gist Oct 25, 2016.
    3 changes: 3 additions & 0 deletions shortWord.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    function findShort(s){
    return Math.min.apply(null, s.split(' ').map(w => w.length));
    }