Skip to content

Commit c48f551

Browse files
no need to cast string to string
Co-Authored-By: alexcjohnson <[email protected]>
1 parent db2c3a3 commit c48f551

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/cartesian/axis_defaults.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,6 @@ var dayStrToNum = {
225225
function indexOfDay(v) {
226226
if(typeof v !== 'string') return;
227227
return dayStrToNum[
228-
String(v).substr(0, 3).toLowerCase()
228+
v.substr(0, 3).toLowerCase()
229229
];
230230
}

0 commit comments

Comments
 (0)