Skip to content

Commit

Permalink
Eliminate longest fn.
Browse files Browse the repository at this point in the history
Pull request removes `longest` since it is not used anywhere within `index.js`.
  • Loading branch information
Francis authored and James Halliday committed May 8, 2014
1 parent 3754568 commit 824f642
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions index.js
Expand Up @@ -182,6 +182,3 @@ function isNumber (x) {
return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
}

function longest (xs) {
return Math.max.apply(null, xs.map(function (x) { return x.length }));
}

0 comments on commit 824f642

Please sign in to comment.