Chober.js
Docs | Licence
A collection of useful methods that are used by programmers every day. We decided to put all the methods together so as not to copy them from project to project.
Quick start
Install with npm.
npm i chober
or download and install with script
.
<script src="chober.min.js"></script>
or cdn
<script src="https://cdn.jsdelivr.net/npm/chober/dist/chober.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chober@1.0.2/dist/chober.min.js"></script>
npm
Import one method
import { isEmpty } from 'chober';
const { isEmpty } = require('chober');
isEmpty([]);
Import all library and use all methods
import _c from 'chober';
const _c = require('chober');
_c.isEmpty([]);
_c.clone({ key: 'value' });
Import only one method
If you import one method, other methods will not be imported.
import isEmpty from 'chober/lib/isEmpty';
const isEmpty = require('chober/lib/isEmpty');
isEmpty([]);
Browser
_c
binds to the window
.
<script src="chober.min.js"></script>
_c.isEmpty([]);
Methods
All methods you can find in our documentation.
© Valery Strelets