o
common object helper functions written in TypeScript which can be used in NodeJS and the browser (supports ES6).
Installation
NPM
$ npm install o
Yarn
$ yarn add o
Usage
TypeScript
;// or require specific functions;
NodeJS
const o = ;// or require specific functionsconst is empty = ;
Browser
ES6
<!-- Script tag -->
CDN/Script
Example usage
const a = a: 1 b: 2 c: d: 3 e: 4 ; ; // => true; // => false; // => true; // => false; // => true const b = ;; // => 5
For more examples and a list of all functions view the documentation page.
Documentation
You can view the documentation here, docs are generated by TypeDoc.
Contributing
All functions are documented with TypeDoc and are fully commented explaining how they works. If you want to
contribute feel free to open a PR. When you open a PR please make sure yarn test
and yarn lint
both pass
with no errors and if any tests fail or any linting issues are raised please fix them accordingly.