In Javascript some()
method calls the callback function on each item of the array and checks it against the condition and if the condition returns true
it returns a boolean value true
else returns false
.
array.some(callback_function, extra_arguments);
some()
the method does not modify or change the existing array.
#javascript #web development