JSFiddle - React, Tailwind, and code Playground

by garmashnikolay

JavaScript

const True = (a, b) => a()
const False = (a, b) => b()

function test () {
	return False
}

const matches = test("some string")

matches(
	() => console.log('matches'),
  () => console.log('does not match')
)