common object helper functions
npm install o





#### NPM
``bash`
$ npm install o
#### Yarn
`bash`
$ yarn add o
#### TypeScript
`typescript`
import o from 'o';
// or require specific functions
import { is, empty } from 'o';
#### NodeJS
`javascript`
const o = require('o');
// or require specific functions
const { is, empty } = require('o');
#### Browser
##### ES6
`html
type="module"
src="./o.min.js"
/>
`
##### CDN/Script
`html`
type="application/javascript"
src="https://cdn.jsdelivr.net/npm/o@2.0.0/dist/o.min.js"
/>
`javascript
const a = {
a: 1,
b: 2,
c: {
d: 3,
e: 4,
},
};
is(a); // => true
empty(a); // => false
has(a, 'a'); // => true
has(a, 'd'); // => false
has(a, 'c.d'); // => true
const b = set(a, 'f', 5);
get(b, 'f'); // => 5
`
For more examples and a list of all functions view the documentation page.
You can view the documentation here, docs are generated by TypeDoc.
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.