Skip to content

Commit c757ef7

Browse files
simplify call
Co-authored-by: Alex Johnson <[email protected]>
1 parent b9ddbc4 commit c757ef7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/traces/scatter3d/convert.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,7 @@ function arrayToColor(colors) {
354354
return _arrayToColor(colors);
355355
}
356356

357-
return colors.map(function(color) {
358-
return _arrayToColor(color);
359-
});
357+
return colors.map(_arrayToColor);
360358
}
361359

362360
proto.update = function(data) {

0 commit comments

Comments
 (0)