SHARE
TWEET

Untitled

a guest Oct 15th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. inRange(value: number, min: number, max: number, checkEqual = false): boolean {
  2.         return checkEqual ? (value > min && value < max) : (value >= min && value <= max);  
  3.     }
  4.  
  5.     outOfRange(value: number, min: number, max: number, checkEqual = false): boolean {
  6.         return checkEqual ? (value < min && value > max) : (value <= min && value >= max);
  7.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top