Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/component/xor

tiny xor utility function
https://github.com/component/xor

Last synced: 13 days ago
JSON representation

tiny xor utility function

Awesome Lists containing this project

README

        

# xor

tiny xor utility function

## Installation

Install with [component(1)](http://component.io):

$ component install component/xor

Or with node.js:

$ npm install component-xor

## API

### xor(bool, bool)

XOR two boolean values.

```js
xor(true, true) // false
xor(true, false) // true
xor(false, true) // true
xor(false, false) // false
```

## Test

```
npm install
make test
```

## License

MIT