Yields a function that checks if a value is close to any target value
const c = isCloseToAny(1, 10, 20, 30, 40);c(11); // True - within 1 range of 10c(19); // True - within 1 range of 20c(0); // False Copy
const c = isCloseToAny(1, 10, 20, 30, 40);c(11); // True - within 1 range of 10c(19); // True - within 1 range of 20c(0); // False
Returned function accepts multiple values, returning true if any of them are within range
c(0, 1, 11); // Would return true based on 11 Copy
c(0, 1, 11); // Would return true based on 11
Yields a function that checks if a value is close to any target value
Returned function accepts multiple values, returning true if any of them are within range