From 0e6de2c31dbf8c21277481f112e99c52b913940f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 27 Dec 2017 19:33:54 +0100 Subject: node_modules --- node_modules/widest-line/index.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'node_modules/widest-line/index.js') 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))); -- cgit v1.2.3