Commit a93b0bb9 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'winh-any-some' into 'master'

Replace _.any() with _.some()

See merge request gitlab-org/gitlab!17555
parents 668e483f 70c7496a
......@@ -26,7 +26,7 @@ $.fn.requiresInput = function requiresInput() {
const values = _.map($(fieldSelector, $form), field => field.value);
// Disable the button if any required fields are empty
if (values.length && _.any(values, _.isEmpty)) {
if (values.length && _.some(values, _.isEmpty)) {
$button.disable();
} else {
$button.enable();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment