Guest User

Untitled

a guest
Nov 20th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. const greater = ( x, y ) => ( x > y ) ? x : y
  2.  
  3. const isPositive = ( z ) => !!greater( z, 0 )
  4.  
  5. const isPositiveX = ( x ) => isPositive( x )
  6. const isNegativeX = ( x ) => !isPositiveX( x )
  7.  
  8. const isPositiveY = ( y ) => isPositive( y )
  9. const isNegativeY = ( y ) => !isPositiveY( y )
Add Comment
Please, Sign In to add comment