mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
js: Convert _.any(a, …), _.some(a, …) to a.some(…).
And convert the corresponding function expressions to arrow style while we’re here. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
2285ee922e
commit
70ff164f89
@@ -21,9 +21,7 @@ exports.task_data_holder = function () {
|
||||
|
||||
self.check_task = {
|
||||
task_exists: function (task) {
|
||||
const task_exists = _.any(all_tasks, function (item) {
|
||||
return item.task === task;
|
||||
});
|
||||
const task_exists = all_tasks.some(item => item.task === task);
|
||||
return task_exists;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user