Nest all content into snippets

This commit is contained in:
Angelos Chalaris
2023-05-07 16:07:29 +03:00
parent 2ecadbada9
commit 6a45d2ec07
1240 changed files with 0 additions and 0 deletions

22
snippets/js/s/not.md Normal file
View File

@ -0,0 +1,22 @@
---
title: Logical not
type: snippet
language: javascript
tags: [math,logic]
unlisted: true
cover: succulent-7
dateModified: 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.
```js
const not = a => !a;
```
```js
not(true); // false
not(false); // true
```