diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-12-27 19:33:54 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-12-27 19:34:16 +0100 |
commit | 0e6de2c31dbf8c21277481f112e99c52b913940f (patch) | |
tree | 91789032de3b8eec9d789acd1323f25fc5d08422 /node_modules/widest-line/index.js | |
parent | ceda0da31ad542c598c68146ae0712ca03df3d71 (diff) |
node_modules
Diffstat (limited to 'node_modules/widest-line/index.js')
-rw-r--r-- | node_modules/widest-line/index.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/node_modules/widest-line/index.js b/node_modules/widest-line/index.js index e204810bf..173cec4f2 100644 --- a/node_modules/widest-line/index.js +++ b/node_modules/widest-line/index.js @@ -1,9 +1,5 @@ 'use strict'; -var stringWidth = require('string-width'); +const stringWidth = require('string-width'); -module.exports = function (str) { - return Math.max.apply(null, str.split('\n').map(function (x) { - return stringWidth(x); - })); -}; +module.exports = input => Math.max.apply(null, input.split('\n').map(x => stringWidth(x))); |