Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nested ternarys javascript

const H =
  C == 0 ? null            :
  V == r ? (g - b) / C     :
  V == g ? (b - r) / C + 2 :
           (r - g) / C + 4 ;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #nested #ternarys #javascript
ADD COMMENT
Topic
Name
8+9 =