Skip to content

Commit d309f79

Browse files
Esref Durnagajus
Esref Durna
authored andcommittedJun 2, 2017
refactor: converting lodash map to es6 (#43)
converting lodash map to es6
1 parent 4247a96 commit d309f79

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎src/stringifyTableData.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import _ from 'lodash';
2-
31
/**
42
* Casts all cell values to a string.
53
*
64
* @param {table~row[]} rows
75
* @returns {table~row[]}
86
*/
97
export default (rows) => {
10-
return _.map(rows, (cells) => {
11-
return _.map(cells, String);
8+
return rows.map((cells) => {
9+
return cells.map(String);
1210
});
1311
};

0 commit comments

Comments
 (0)
Please sign in to comment.