Skip to content

Commit 597b4a2

Browse files
Esref Durnagajus
Esref Durna
authored andcommittedJun 2, 2017
refactor: converting lodash to es6 (#40)
converting lodash to es6
1 parent f2e72ba commit 597b4a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/calculateCellWidthIndex.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import _ from 'lodash';
21
import stringWidth from 'string-width';
32

43
/**
@@ -8,7 +7,7 @@ import stringWidth from 'string-width';
87
* @returns {number[]}
98
*/
109
export default (cells) => {
11-
return _.map(cells, (value) => {
10+
return cells.map((value) => {
1211
return stringWidth(value);
1312
});
1413
};

0 commit comments

Comments
 (0)
Please sign in to comment.