mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
REFACTOR: Use Array.isArray instead of _.isArray
This commit is contained in:
@@ -492,7 +492,7 @@ Report.reopenClass({
|
||||
const startDate = options.startDate || "start_date";
|
||||
const endDate = options.endDate || "end_date";
|
||||
|
||||
if (_.isArray(report[dataField])) {
|
||||
if (Array.isArray(report[dataField])) {
|
||||
const startDateFormatted = moment
|
||||
.utc(report[startDate])
|
||||
.locale("en")
|
||||
|
||||
Reference in New Issue
Block a user