0.1.0 • Published 7 years ago
@thecodeaware/ts-optional v0.1.0
Typescript Optional
Null/undefined safe object for TypeScript.
Based on Java Optional.
Installation
npm install @thecodeaware/ts-optional
Usage & 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
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.