That part of the function is an arrow function as It has only on single line you don't need to have curly brace and return key.
The code is equal to this one
function checkAvailability(array, value) {
return array.some(function(arrayValue) {
return value === arrayValue;
})
}
As there is only one line in the body of callback function you can directly return it within a arrow function like this
array.some(arrayValue => value ===arrayValue)
And that part is the function which is use to check if the array have already some item which match the filter condition difine in the callback in this case value === arrayValue