Snippets Collections
// if something is true then execute the code on the left, otherwise return null
e.propertyName === 'transform' ? key.classList.remove('playing') : null;
star

Wed Apr 03 2024 23:46:07 GMT+0000 (Coordinated Universal Time)

#javascript #ternary

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension