Skip to content

Commit 53b4260

Browse files
authored
Merge pull request #78 from hodovani/patch-3
Replace map with forEach
2 parents c33f233 + 69ccb7a commit 53b4260

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dist/core/get_dummies.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function get_dummy(kwargs = {}) {
6565

6666
if (!columns) {
6767
columns = [];
68-
in_data.col_types.map((x, i) => {
68+
in_data.col_types.forEach((x, i) => {
6969
if (x == "string") {
7070
let name_column = in_data.columns[i];
7171
columns.push(name_column);
@@ -131,4 +131,4 @@ function get_dummy(kwargs = {}) {
131131
}
132132

133133
const get_dummies = get_dummy;
134-
exports.get_dummies = get_dummies;
134+
exports.get_dummies = get_dummies;

0 commit comments

Comments
 (0)