Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Toggle Boolean Js

const toggleBool = (val) => (val = !val)

toggleBool(false) //true
Source by devdojo.com #
 
PREVIOUS NEXT
Tagged: #Toggle #Boolean #Js
ADD COMMENT
Topic
Name
7+5 =