Created
April 13, 2026 11:24
-
-
Save goofballLogic/0b99a2573e8aef45025c84ea0ddcd4bf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const validatePizza = (layers, rules) => | |
| rules.find(([a, b]) => layers.indexOf(a) > layers.indexOf(b)) || true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a super slick one-liner! Haven't benchmarked it yet, but I love how readable it stays despite being so compact