@writetome51/not
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

not(booleanExpression): boolean

It's an alternative to writing !(booleanExpression).
not is just a little more noticeable than the sneaky ! negation operator.

Examples

not(false); // --> true

not(true); // --> false

not(1 === 2); // --> true

if ( not( isEmpty( [1,2,3,4] ) ) ) {
	console.log('The array contains items');
}
  // console: 'The array contains items'

Installation

npm i @writetome51/not

Loading

import { not } from '@writetome51/not';

Package Sidebar

Install

npm i @writetome51/not

Weekly Downloads

10

Version

2.0.1

License

FREE

Unpacked Size

1.64 kB

Total Files

5

Last publish

Collaborators

  • writetome51