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

https://github.com/dbjdbj/dbj.cond

JavaScript without if( ) else ( ) cascades ...
https://github.com/dbjdbj/dbj.cond

cond conditional-statements dbj javascript npm-package switch

Last synced: about 2 months ago
JSON representation

JavaScript without if( ) else ( ) cascades ...

Awesome Lists containing this project

README

        



dbj.cond( );

(c) 2009-2024 .. and beyond, by [dbj at dbj dot org™](https://dbj.org)
Licensed under the Apache License, Version 2.0

![ ](https://dbj.org/wp-content/uploads/2015/12/cropped-dbj-icon-e1486129719897.jpg)

## Why dbj.cond()

Simple API for avoiding complex if-then-else stunts.

## How is it done

**dbj.cond** is inspired by the LISP COND
conditional statement.

## Usage

For overview, usage, tests and such, please go to this [simple manual](man.md).

For a testing project please go to **dbj.cond.test** on the GitHub.

There are (numerous) real life examples proving the quality of this idiom. Please do feel free to send us your code.
We might publish it and discuss it on https://dbj.org

**CONTACT+SUPPORT**

- Mailing [email protected]
- GitHub issues page.

---
© 2018-2024 by [dbj at dbj dot org™](https://www.dbj.org)

![ ](https://dbj.org/wp-content/uploads/2015/12/cropped-dbj-icon-e1486129719897.jpg)