Files
30-seconds-of-code/snippets/not.md
Isabelle Viktoria Maciohsek 8bf67754ce Make expertise a field
2022-03-01 20:21:45 +02:00

367 B

title, tags, expertise, unlisted, firstSeen, lastUpdated
title tags expertise unlisted firstSeen lastUpdated
Logical not math,logic beginner true 2020-05-13T11:28:26+03:00 2021-01-04T13:04:15+02:00

Returns the logical inverse of the given value.

  • Use the logical not (!) operator to return the inverse of the given value.
const not = a => !a;
not(true); // false
not(false); // true