celia
Note: A modern JavaScript utility library delivering modularity, performance, and extras.
Table of contents
Installation
Load celia
via classical <script>
tag
<script src="https://cdn.jsdelivr.net/npm/celia/iife.min.js"></script>
<script>
celia.each
celia.isArrayLike
celia.isAsyncFunction
celia.isDate
celia.isFalsy
celia.looseEqual
celia.sleep
</script>
CommonJS style with npm
npm install celia --save
import { assign, each, getUid, hasOwn, isArrayLike, isUndefined, isWindow, looseEqual, map, noop, sleep, toString, type } from 'celia');
import each from 'celia/es/each';
import isArrayLike from 'celia/es/isArrayLike';
import isAsyncFunction from 'celia/es/isAsyncFunction';
import isDate from 'celia/es/isDate';
import isFalsy from 'celia/es/isFalsy';
import looseEqual from 'celia/es/looseEqual';
import sleep from 'celia/es/sleep';
const { assign, each, getUid, hasOwn, isArrayLike, isUndefined, isWindow, looseEqual, map, noop, sleep, toString, type } = require('celia');
const each = require('celia/each');
const isArrayLike = require('celia/isArrayLike');
const isAsyncFunction = require('celia/isAsyncFunction');
const isDate = require('celia/isDate');
const isFalsy = require('celia/isFalsy');
const looseEqual = require('celia/looseEqual');
const sleep = require('celia/sleep');
API
- assign
- each
- getEasyHash
- getUid
- hasOwn
- isAbsoluteURL
- isArrayLike
- isAsyncFunction
- isBoolean
- isDate
- isFalsy
- isFunction
- isInteger
- isNil
- isNumber
- isObject
- isPlainObject
- isPromiseLike
- isRegExp
- isString
- isUndefined
- isWindow
- looseEqual
- map
- noop
- sleep
- toString
- type
Usage
Manipulation
Example