Files
30-seconds-of-code/snippets/not.md
Angelos Chalaris 8a6b73bd0c Update covers
2023-02-16 22:24:28 +02:00

366 B

title, tags, unlisted, cover, firstSeen, lastUpdated
title tags unlisted cover firstSeen lastUpdated
Logical not math,logic true succulent-7 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