Ternary Operator Actions


We have a table with checkboxes and a master toggle that allows for the selection of and clearing all boxes.

We want to implement this action.


When all boxes are selected clear, otherwise check them.




Founder of Firefly Semantics Corporation

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

JavaScript Essentials: Often Overlooked Elements of One of The Most Popular Web Development…

Using Svelte with Lightning Web Components

SPG Development

What does the .= operator mean in PHP?


Newer JavaScript Features

Context in React.js

Does Angular really suck: why I have to disagree!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ole Ersoy

Ole Ersoy

Founder of Firefly Semantics Corporation

More from Medium

Indexing Typescript Todo Entities with Lunr

Analysis of different Micro-front end techniques

Typescript dynamic type with any

Test your Storybook