Veritas
The extension library for pragmatists with elegance.
Installation
npm install --save veritas
Basic usage with examples
First of all,
;
Simply,
// blah blah blah ... Something; const instance = ; forconst key of Object // the key 'name' must not found.
Furthermore,
String; const string = 'Green Glass Grows Globes Greenly.'; console; // Creen Class Crows Clobes Creenly.
Finally,
Array; const array = 1 2 3 4 5; console; // [1, 3, 5, 7, 9];console; // [1, -1, 1, -1, 1]; // `hasOwnProperty` checking is unnecessary by Veritas.forconst index in array ifarray console; // Do not worry. just do like this.forconst element of array console;
Ta-da! We can extend standard built-in objects and user defined objects in elegantly without worrying about unexpected exceptions within Veritas we believe.
License
Veritas is licensed under LGPL-3.0.