Hi,

> if (restrict) {}

Style best to be avoided IMO.

Lots of things are truthy / falsy in JS. [1] For instance empty string is false 
and so is NaN and it gets messy fast. [2]

Thanks,
Justin

1. https://developer.mozilla.org/en-US/docs/Glossary/Falsy
2. https://dorey.github.io/JavaScript-Equality-Table/

Reply via email to