Skip to main content

Melon.std.boolean.checkOne(method, values)

Check the true condition in a method for at least one value.

Status: stable
Returns: boolean

Parameters

NameTypeDescription
methodFunctionThe function to be executed with the values in order to get the conditional value
valuesany[]Values to be checked with the method

Example usage

const { boolean } = Melon.std;

const result = boolean.checkOne(Number.isInteger, [1, 2, 3, 4]);
console.log(result);

Extra behaviors