0.1.0 • Published 7 years ago

@thecodeaware/ts-optional v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

Typescript Optional

npm.io Build Status codecov MIT License npm.io npm.io

Null/undefined safe object for TypeScript.

Based on Java Optional.

Installation

npm install @thecodeaware/ts-optional

Usage & Doc

API doc

Contribution

Feel free to add improvements. Remember about tests!

npm install
npm run test

Following Java Optional

Library is based on Java 11 Optional. A few methods are not implemented as in Java, because of JS/TS specificity.

  • hashCode
  • stream
  • toString

Changelog

CHANGELOG

TODO

  • add missing tests
  • document the rest of methods (with examples)

Credits

  • Java - for the idea of the Optional object

License

This project is licensed under the terms of the MIT license - check LICENSE file.

0.1.0

7 years ago

0.0.1

7 years ago