One-liner that takes zero or more boolean arguments and turns them into a bitmask.
This is basically a workaround for the fact that JavaScript, even in modern incarnations, lacks switch statements where the cases are predicate expressions.
One-liner that takes zero or more boolean arguments and turns them into a bitmask.
This is basically a workaround for the fact that JavaScript, even in modern incarnations, lacks switch statements where the cases are predicate expressions.
Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.
All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.