Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

celia

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

celia - npm Package Compare versions

Comparing version 6.0.0-beta.4 to 6.0.0

es/isFalsy.js

2

_append.js
/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -164,2 +164,14 @@ * Released under the MIT License.

var falseLike = {
false: true,
null: true,
undefined: true,
0: true,
NaN: true,
'': true
};
function isFalsy (bool) {
return !!falseLike[bool];
}
var isInteger = Number.isInteger || _isInteger;

@@ -262,2 +274,3 @@

exports.isDate = isDate;
exports.isFalsy = isFalsy;
exports.isFunction = isFunction;

@@ -264,0 +277,0 @@ exports.isInteger = isInteger;

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
define(["exports"],function(n){"use strict";function u(n,t){return n[n.length]=t,n}function c(n){return null==n}function i(n){return null!==n&&"object"==typeof n}function f(n,t){return t?n.bind(t):n}function o(n,t,e,r,o){for(var i=f(r,o),u=t,c=void 0;!1!==c&&u<e;u++)c=i(n[u],u,n)}function r(t,e,n){e=f(e,n);var r=Object.keys(t);o(Object.keys(t),0,r.length,function(n){return e(t[n],n)})}function t(n){if(c(n))throw new TypeError("Cannot convert undefined or null to object");var e=Object(n);return o(arguments,1,arguments.length,function(n){i(n)&&r(n,function(n,t){e[t]=n})}),e}function a(n,t,e){o(n,0,n.length,t,e)}function s(n,t,e){for(var r=f(t,e),o=0,i=void 0;!1!==i&&o<n;o++)i=r(o,o,o)}function l(n){return"number"==typeof n}function e(n){return l(n)&&isFinite(n)&&n>>0===n}function b(n,t,e,r){var o=[],i=f(e,r);return n(t,function(n,t){c(n=i(n,t))||u(o,n)}),o}var y=Object.assign||t;function g(n){return"function"==typeof n}function p(n){return!c(n)&&l(n.length)&&!g(n)}function v(n,t,e){p(n)?a(n,t,e):i(n)||g(n)?r(n,t,e):l(n)&&s(n,t,e)}var h="celia_uid_"+(1e9*Math.random()>>>0),j=0;function d(n){return n[h]||(++j,Object.defineProperty(n,h,{value:j}),j)}var O=Object.prototype.hasOwnProperty;var m=/^([a-z][a-z\d+\-.]*:)?\/\//i;var _=Object.prototype.toString;function w(n){return _.call(n)}function E(n){return n instanceof Date}var A=Number.isInteger||e;function S(n){return n instanceof RegExp}var k=Array.isArray;var F={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){F["[object "+n+"]"]=n.toLowerCase()}),n._append=u,n._assign=t,n._bindContext=f,n._forEach=a,n._forIn=function(n,t,e){var r=f(t,e);for(var o in n)if(!1===r(n[o],o))break},n._forNumber=s,n._forOwn=r,n._forSlice=o,n._isInteger=e,n._map=b,n.assign=y,n.each=v,n.getEasyHash=function(n){return i(n)?"o"+d(n):(typeof n)[0]+n},n.getUid=d,n.hasOwn=function(n,t){return O.call(n,t)},n.isAbsoluteURL=function(n){return m.test(n)},n.isArrayLike=p,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===w(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=E,n.isFunction=g,n.isInteger=A,n.isNil=c,n.isNumber=l,n.isObject=i,n.isPlainObject=function(n){return!c(n)&&"[object Object]"===w(n)},n.isPromiseLike=function(n){return!!n&&g(n.then)&&g(n.catch)},n.isRegExp=S,n.isString=function(n){return"string"==typeof n},n.isUndefined=function(n){return void 0===n},n.isWindow=function(n){return n&&n===n.window},n.looseEqual=function e(t,r){if(i(t)&&i(r)){if(k(t)&&k(r))return t.length===r.length&&t.every(function(n,t){return e(n,r[t])});if(E(t)&&E(r))return+t==+r;if(S(t)&&S(r))return t.toString()===r.toString();var n=Object.keys(t),o=Object.keys(r);return n.length===o.length&&n.every(function(n){return e(t[n],r[n])})}return t===r},n.map=function(n,t,e){return b(v,n,t,e)},n.noop=function(){},n.sleep=function(t){return new Promise(function(n){setTimeout(n,t)})},n.toString=w,n.type=function(n){return c(n)?n+"":i(n)||g(n)?F[w(n)]||"object":typeof n}});
define(["exports"],function(n){"use strict";function u(n,t){return n[n.length]=t,n}function c(n){return null==n}function o(n){return null!==n&&"object"==typeof n}function f(n,t){return t?n.bind(t):n}function i(n,t,e,r,i){for(var o=f(r,i),u=t,c=void 0;!1!==c&&u<e;u++)c=o(n[u],u,n)}function r(t,e,n){e=f(e,n);var r=Object.keys(t);i(Object.keys(t),0,r.length,function(n){return e(t[n],n)})}function t(n){if(c(n))throw new TypeError("Cannot convert undefined or null to object");var e=Object(n);return i(arguments,1,arguments.length,function(n){o(n)&&r(n,function(n,t){e[t]=n})}),e}function a(n,t,e){i(n,0,n.length,t,e)}function s(n,t,e){for(var r=f(t,e),i=0,o=void 0;!1!==o&&i<n;i++)o=r(i,i,i)}function l(n){return"number"==typeof n}function e(n){return l(n)&&isFinite(n)&&n>>0===n}function b(n,t,e,r){var i=[],o=f(e,r);return n(t,function(n,t){c(n=o(n,t))||u(i,n)}),i}var y=Object.assign||t;function g(n){return"function"==typeof n}function p(n){return!c(n)&&l(n.length)&&!g(n)}function v(n,t,e){p(n)?a(n,t,e):o(n)||g(n)?r(n,t,e):l(n)&&s(n,t,e)}var d="celia_uid_"+(1e9*Math.random()>>>0),h=0;function j(n){return n[d]||(++h,Object.defineProperty(n,d,{value:h}),h)}var O=Object.prototype.hasOwnProperty;var m=/^([a-z][a-z\d+\-.]*:)?\/\//i;var _=Object.prototype.toString;function w(n){return _.call(n)}function E(n){return n instanceof Date}var A={false:!0,null:!0,undefined:!0,0:!0,NaN:!0,"":!0};var S=Number.isInteger||e;function k(n){return n instanceof RegExp}var F=Array.isArray;var N={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){N["[object "+n+"]"]=n.toLowerCase()}),n._append=u,n._assign=t,n._bindContext=f,n._forEach=a,n._forIn=function(n,t,e){var r=f(t,e);for(var i in n)if(!1===r(n[i],i))break},n._forNumber=s,n._forOwn=r,n._forSlice=i,n._isInteger=e,n._map=b,n.assign=y,n.each=v,n.getEasyHash=function(n){return o(n)?"o"+j(n):(typeof n)[0]+n},n.getUid=j,n.hasOwn=function(n,t){return O.call(n,t)},n.isAbsoluteURL=function(n){return m.test(n)},n.isArrayLike=p,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===w(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=E,n.isFalsy=function(n){return!!A[n]},n.isFunction=g,n.isInteger=S,n.isNil=c,n.isNumber=l,n.isObject=o,n.isPlainObject=function(n){return!c(n)&&"[object Object]"===w(n)},n.isPromiseLike=function(n){return!!n&&g(n.then)&&g(n.catch)},n.isRegExp=k,n.isString=function(n){return"string"==typeof n},n.isUndefined=function(n){return void 0===n},n.isWindow=function(n){return n&&n===n.window},n.looseEqual=function e(t,r){if(o(t)&&o(r)){if(F(t)&&F(r))return t.length===r.length&&t.every(function(n,t){return e(n,r[t])});if(E(t)&&E(r))return+t==+r;if(k(t)&&k(r))return t.toString()===r.toString();var n=Object.keys(t),i=Object.keys(r);return n.length===i.length&&n.every(function(n){return e(t[n],r[n])})}return t===r},n.map=function(n,t,e){return b(v,n,t,e)},n.noop=function(){},n.sleep=function(t){return new Promise(function(n){setTimeout(n,t)})},n.toString=w,n.type=function(n){return c(n)?n+"":o(n)||g(n)?N[w(n)]||"object":typeof n}});
/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -164,2 +164,14 @@ * Released under the MIT License.

var falseLike = {
false: true,
null: true,
undefined: true,
0: true,
NaN: true,
'': true
};
function isFalsy (bool) {
return !!falseLike[bool];
}
var isInteger = Number.isInteger || _isInteger;

@@ -262,2 +274,3 @@

exports.isDate = isDate;
exports.isFalsy = isFalsy;
exports.isFunction = isFunction;

@@ -264,0 +277,0 @@ exports.isInteger = isInteger;

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -162,2 +162,14 @@ * Released under the MIT License.

var falseLike = {
false: true,
null: true,
undefined: true,
0: true,
NaN: true,
'': true
};
function isFalsy (bool) {
return !!falseLike[bool];
}
var isInteger = Number.isInteger || _isInteger;

@@ -240,2 +252,2 @@

export { append as _append, _assign, bindContext as _bindContext, forEach as _forEach, _forIn, forNumber as _forNumber, forOwn as _forOwn, forSlice as _forSlice, _isInteger, map as _map, assign, each, getEasyHash, getUid, hasOwn, isAbsoluteURL, isArrayLike, isAsyncFunction, isBoolean, isDate, isFunction, isInteger, isNil, isNumber, isObject, isPlainObject, isPromiseLike, isRegExp, isString, isUndefined, isWindow, looseEqual, map$1 as map, noop, sleep, toString$1 as toString, type };
export { append as _append, _assign, bindContext as _bindContext, forEach as _forEach, _forIn, forNumber as _forNumber, forOwn as _forOwn, forSlice as _forSlice, _isInteger, map as _map, assign, each, getEasyHash, getUid, hasOwn, isAbsoluteURL, isArrayLike, isAsyncFunction, isBoolean, isDate, isFalsy, isFunction, isInteger, isNil, isNumber, isObject, isPlainObject, isPromiseLike, isRegExp, isString, isUndefined, isWindow, looseEqual, map$1 as map, noop, sleep, toString$1 as toString, type };
/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -165,2 +165,14 @@ * Released under the MIT License.

var falseLike = {
false: true,
null: true,
undefined: true,
0: true,
NaN: true,
'': true
};
function isFalsy (bool) {
return !!falseLike[bool];
}
var isInteger = Number.isInteger || _isInteger;

@@ -263,2 +275,3 @@

exports.isDate = isDate;
exports.isFalsy = isFalsy;
exports.isFunction = isFunction;

@@ -265,0 +278,0 @@ exports.isInteger = isInteger;

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
!function(n){"use strict";function u(n,t){return n[n.length]=t,n}function c(n){return null==n}function i(n){return null!==n&&"object"==typeof n}function f(n,t){return t?n.bind(t):n}function o(n,t,e,r,o){for(var i=f(r,o),u=t,c=void 0;!1!==c&&u<e;u++)c=i(n[u],u,n)}function r(t,e,n){e=f(e,n);var r=Object.keys(t);o(Object.keys(t),0,r.length,function(n){return e(t[n],n)})}function t(n){if(c(n))throw new TypeError("Cannot convert undefined or null to object");var e=Object(n);return o(arguments,1,arguments.length,function(n){i(n)&&r(n,function(n,t){e[t]=n})}),e}function a(n,t,e){o(n,0,n.length,t,e)}function s(n,t,e){for(var r=f(t,e),o=0,i=void 0;!1!==i&&o<n;o++)i=r(o,o,o)}function l(n){return"number"==typeof n}function e(n){return l(n)&&isFinite(n)&&n>>0===n}function b(n,t,e,r){var o=[],i=f(e,r);return n(t,function(n,t){c(n=i(n,t))||u(o,n)}),o}var y=Object.assign||t;function g(n){return"function"==typeof n}function p(n){return!c(n)&&l(n.length)&&!g(n)}function v(n,t,e){p(n)?a(n,t,e):i(n)||g(n)?r(n,t,e):l(n)&&s(n,t,e)}var h="celia_uid_"+(1e9*Math.random()>>>0),j=0;function d(n){return n[h]||(++j,Object.defineProperty(n,h,{value:j}),j)}var O=Object.prototype.hasOwnProperty;var m=/^([a-z][a-z\d+\-.]*:)?\/\//i;var _=Object.prototype.toString;function w(n){return _.call(n)}function E(n){return n instanceof Date}var A=Number.isInteger||e;function S(n){return n instanceof RegExp}var k=Array.isArray;var F={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){F["[object "+n+"]"]=n.toLowerCase()}),n._append=u,n._assign=t,n._bindContext=f,n._forEach=a,n._forIn=function(n,t,e){var r=f(t,e);for(var o in n)if(!1===r(n[o],o))break},n._forNumber=s,n._forOwn=r,n._forSlice=o,n._isInteger=e,n._map=b,n.assign=y,n.each=v,n.getEasyHash=function(n){return i(n)?"o"+d(n):(typeof n)[0]+n},n.getUid=d,n.hasOwn=function(n,t){return O.call(n,t)},n.isAbsoluteURL=function(n){return m.test(n)},n.isArrayLike=p,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===w(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=E,n.isFunction=g,n.isInteger=A,n.isNil=c,n.isNumber=l,n.isObject=i,n.isPlainObject=function(n){return!c(n)&&"[object Object]"===w(n)},n.isPromiseLike=function(n){return!!n&&g(n.then)&&g(n.catch)},n.isRegExp=S,n.isString=function(n){return"string"==typeof n},n.isUndefined=function(n){return void 0===n},n.isWindow=function(n){return n&&n===n.window},n.looseEqual=function e(t,r){if(i(t)&&i(r)){if(k(t)&&k(r))return t.length===r.length&&t.every(function(n,t){return e(n,r[t])});if(E(t)&&E(r))return+t==+r;if(S(t)&&S(r))return t.toString()===r.toString();var n=Object.keys(t),o=Object.keys(r);return n.length===o.length&&n.every(function(n){return e(t[n],r[n])})}return t===r},n.map=function(n,t,e){return b(v,n,t,e)},n.noop=function(){},n.sleep=function(t){return new Promise(function(n){setTimeout(n,t)})},n.toString=w,n.type=function(n){return c(n)?n+"":i(n)||g(n)?F[w(n)]||"object":typeof n}}({});
!function(n){"use strict";function u(n,t){return n[n.length]=t,n}function c(n){return null==n}function o(n){return null!==n&&"object"==typeof n}function f(n,t){return t?n.bind(t):n}function i(n,t,e,r,i){for(var o=f(r,i),u=t,c=void 0;!1!==c&&u<e;u++)c=o(n[u],u,n)}function r(t,e,n){e=f(e,n);var r=Object.keys(t);i(Object.keys(t),0,r.length,function(n){return e(t[n],n)})}function t(n){if(c(n))throw new TypeError("Cannot convert undefined or null to object");var e=Object(n);return i(arguments,1,arguments.length,function(n){o(n)&&r(n,function(n,t){e[t]=n})}),e}function a(n,t,e){i(n,0,n.length,t,e)}function s(n,t,e){for(var r=f(t,e),i=0,o=void 0;!1!==o&&i<n;i++)o=r(i,i,i)}function l(n){return"number"==typeof n}function e(n){return l(n)&&isFinite(n)&&n>>0===n}function b(n,t,e,r){var i=[],o=f(e,r);return n(t,function(n,t){c(n=o(n,t))||u(i,n)}),i}var y=Object.assign||t;function g(n){return"function"==typeof n}function p(n){return!c(n)&&l(n.length)&&!g(n)}function v(n,t,e){p(n)?a(n,t,e):o(n)||g(n)?r(n,t,e):l(n)&&s(n,t,e)}var d="celia_uid_"+(1e9*Math.random()>>>0),h=0;function j(n){return n[d]||(++h,Object.defineProperty(n,d,{value:h}),h)}var O=Object.prototype.hasOwnProperty;var m=/^([a-z][a-z\d+\-.]*:)?\/\//i;var _=Object.prototype.toString;function w(n){return _.call(n)}function E(n){return n instanceof Date}var A={false:!0,null:!0,undefined:!0,0:!0,NaN:!0,"":!0};var S=Number.isInteger||e;function k(n){return n instanceof RegExp}var F=Array.isArray;var N={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){N["[object "+n+"]"]=n.toLowerCase()}),n._append=u,n._assign=t,n._bindContext=f,n._forEach=a,n._forIn=function(n,t,e){var r=f(t,e);for(var i in n)if(!1===r(n[i],i))break},n._forNumber=s,n._forOwn=r,n._forSlice=i,n._isInteger=e,n._map=b,n.assign=y,n.each=v,n.getEasyHash=function(n){return o(n)?"o"+j(n):(typeof n)[0]+n},n.getUid=j,n.hasOwn=function(n,t){return O.call(n,t)},n.isAbsoluteURL=function(n){return m.test(n)},n.isArrayLike=p,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===w(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=E,n.isFalsy=function(n){return!!A[n]},n.isFunction=g,n.isInteger=S,n.isNil=c,n.isNumber=l,n.isObject=o,n.isPlainObject=function(n){return!c(n)&&"[object Object]"===w(n)},n.isPromiseLike=function(n){return!!n&&g(n.then)&&g(n.catch)},n.isRegExp=k,n.isString=function(n){return"string"==typeof n},n.isUndefined=function(n){return void 0===n},n.isWindow=function(n){return n&&n===n.window},n.looseEqual=function e(t,r){if(o(t)&&o(r)){if(F(t)&&F(r))return t.length===r.length&&t.every(function(n,t){return e(n,r[t])});if(E(t)&&E(r))return+t==+r;if(k(t)&&k(r))return t.toString()===r.toString();var n=Object.keys(t),i=Object.keys(r);return n.length===i.length&&n.every(function(n){return e(t[n],r[n])})}return t===r},n.map=function(n,t,e){return b(v,n,t,e)},n.noop=function(){},n.sleep=function(t){return new Promise(function(n){setTimeout(n,t)})},n.toString=w,n.type=function(n){return c(n)?n+"":o(n)||g(n)?N[w(n)]||"object":typeof n}}({});
/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -33,2 +33,3 @@ * Released under the MIT License.

var isDate = require('./isDate.js');
var isFalsy = require('./isFalsy.js');
var isInteger = require('./isInteger.js');

@@ -74,2 +75,3 @@ var isPlainObject = require('./isPlainObject.js');

exports.isDate = isDate;
exports.isFalsy = isFalsy;
exports.isInteger = isInteger;

@@ -76,0 +78,0 @@ exports.isPlainObject = isPlainObject;

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

{
"name": "celia",
"version": "6.0.0-beta.4",
"version": "6.0.0",
"description": "A modern JavaScript utility library delivering modularity, performance, and extras.",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -5,5 +5,7 @@ # celia

> Note: A modern JavaScript utility library delivering modularity, performance, & extras.
> Note: A modern JavaScript utility library delivering modularity, performance, and extras.
[![NPM version](https://img.shields.io/npm/v/celia.svg?style=flat)](https://npmjs.org/package/celia) [![NPM Downloads](https://img.shields.io/npm/dm/celia.svg?style=flat)](https://npmjs.org/package/celia)[![](https://data.jsdelivr.com/v1/package/npm/celia/badge)](https://www.jsdelivr.com/package/npm/celia)
[![NPM version](https://img.shields.io/npm/v/celia.svg?style=flat)](https://npmjs.org/package/celia)
[![NPM Downloads](https://img.shields.io/npm/dm/celia.svg?style=flat)](https://npmjs.org/package/celia)
[![](https://data.jsdelivr.com/v1/package/npm/celia/badge)](https://www.jsdelivr.com/package/npm/celia)

@@ -17,3 +19,3 @@ ---

- [Manipulation](#Manipulation)
- [Release History](#Release-History)
- [Example](#Example)

@@ -27,3 +29,32 @@ ---

```html
<script src="https://cdn.jsdelivr.net/npm/celia@6.0.0-beta.2/iife.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/celia/iife.min.js"></script>
<script>
// window.celia
celia.assign
celia.each
celia.getUid
celia.hasOwn
celia.isArrayLike
celia.isAsyncFunction
celia.isBoolean
celia.isDate
celia.isFalsy
celia.isFunction
celia.isInteger
celia.isNil
celia.isNumber
celia.isObject
celia.isPlainObject
celia.isPromiseLike
celia.isRegExp
celia.isString
celia.isUndefined
celia.isWindow
celia.looseEqual
celia.map
celia.noop
celia.sleep
celia.toString
celia.type
</script>
```

@@ -40,29 +71,3 @@

// es6
import {
assign,
each,
getUID,
hasOwn,
isArrayLike,
isAsyncFunction,
isBoolean,
isDate,
isFunction,
isInteger,
isNil,
isNumber,
isObject,
isPlainObject,
isPromiseLike,
isRegExp,
isString,
isUndefined,
isWindow,
looseEqual,
map,
noop,
sleep,
toString,
type
} from 'celia');
import { assign, each, getUid, hasOwn, isArrayLike, isUndefined, isWindow, looseEqual, map, noop, sleep, toString, type } from 'celia');

@@ -78,2 +83,3 @@ // modularity

import isDate from 'celia/es/isDate';
import isFalsy from 'celia/es/isFalsy';
import isFunction from 'celia/es/isFunction';

@@ -98,29 +104,3 @@ import isInteger from 'celia/es/isInteger';

// node
const {
assign,
each,
getUid,
hasOwn,
isArrayLike,
isAsyncFunction,
isBoolean,
isDate,
isFunction,
isInteger,
isNil,
isNumber,
isObject,
isPlainObject,
isPromiseLike,
isRegExp,
isString,
isUndefined,
isWindow,
looseEqual,
map,
noop,
sleep,
toString,
type
} = require('celia');
const { assign, each, getUid, hasOwn, isArrayLike, isUndefined, isWindow, looseEqual, map, noop, sleep, toString, type } = require('celia');
// or

@@ -135,2 +115,3 @@ const assign = require('celia/assign');

const isDate = require('celia/isDate');
const isFalsy = require('celia/isFalsy');
const isFunction = require('celia/isFunction');

@@ -161,4 +142,12 @@ const isInteger = require('celia/isInteger');

[Object](https://github.com/fengxinming/object-utils)
## Release History
[Manipulate Object](https://github.com/fengxinming/object-utils)
[Manipulate Array](https://github.com/fengxinming/array-utils)
[Manipulate String](https://github.com/fengxinming/string-utils)
[Manipulate Function](https://github.com/fengxinming/func-utils)
[Manipulate Query String](https://github.com/fengxinming/qs)
[Manipulate Properties Files](https://github.com/fengxinming/properties-like)
[Browser Stuff](https://github.com/fengxinming/browser-stuff)
## Example
- [Jest](test)
/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng

@@ -168,2 +168,14 @@ * Released under the MIT License.

var falseLike = {
false: true,
null: true,
undefined: true,
0: true,
NaN: true,
'': true
};
function isFalsy (bool) {
return !!falseLike[bool];
}
var isInteger = Number.isInteger || _isInteger;

@@ -266,2 +278,3 @@

exports.isDate = isDate;
exports.isFalsy = isFalsy;
exports.isFunction = isFunction;

@@ -268,0 +281,0 @@ exports.isInteger = isInteger;

/*
* celia.js v6.0.0-beta.4
* celia.js v6.0.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
var n,t;n=this,t=function(n){"use strict";function u(n,t){return n[n.length]=t,n}function c(n){return null==n}function i(n){return null!==n&&"object"==typeof n}function f(n,t){return t?n.bind(t):n}function o(n,t,e,r,o){for(var i=f(r,o),u=t,c=void 0;!1!==c&&u<e;u++)c=i(n[u],u,n)}function r(t,e,n){e=f(e,n);var r=Object.keys(t);o(Object.keys(t),0,r.length,function(n){return e(t[n],n)})}function t(n){if(c(n))throw new TypeError("Cannot convert undefined or null to object");var e=Object(n);return o(arguments,1,arguments.length,function(n){i(n)&&r(n,function(n,t){e[t]=n})}),e}function a(n,t,e){o(n,0,n.length,t,e)}function s(n,t,e){for(var r=f(t,e),o=0,i=void 0;!1!==i&&o<n;o++)i=r(o,o,o)}function l(n){return"number"==typeof n}function e(n){return l(n)&&isFinite(n)&&n>>0===n}function b(n,t,e,r){var o=[],i=f(e,r);return n(t,function(n,t){c(n=i(n,t))||u(o,n)}),o}var p=Object.assign||t;function y(n){return"function"==typeof n}function g(n){return!c(n)&&l(n.length)&&!y(n)}function d(n,t,e){g(n)?a(n,t,e):i(n)||y(n)?r(n,t,e):l(n)&&s(n,t,e)}var v="celia_uid_"+(1e9*Math.random()>>>0),h=0;function j(n){return n[v]||(++h,Object.defineProperty(n,v,{value:h}),h)}var O=Object.prototype.hasOwnProperty;var m=/^([a-z][a-z\d+\-.]*:)?\/\//i;var _=Object.prototype.toString;function w(n){return _.call(n)}function E(n){return n instanceof Date}var A=Number.isInteger||e;function S(n){return n instanceof RegExp}var k=Array.isArray;var x={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){x["[object "+n+"]"]=n.toLowerCase()}),n._append=u,n._assign=t,n._bindContext=f,n._forEach=a,n._forIn=function(n,t,e){var r=f(t,e);for(var o in n)if(!1===r(n[o],o))break},n._forNumber=s,n._forOwn=r,n._forSlice=o,n._isInteger=e,n._map=b,n.assign=p,n.each=d,n.getEasyHash=function(n){return i(n)?"o"+j(n):(typeof n)[0]+n},n.getUid=j,n.hasOwn=function(n,t){return O.call(n,t)},n.isAbsoluteURL=function(n){return m.test(n)},n.isArrayLike=g,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===w(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=E,n.isFunction=y,n.isInteger=A,n.isNil=c,n.isNumber=l,n.isObject=i,n.isPlainObject=function(n){return!c(n)&&"[object Object]"===w(n)},n.isPromiseLike=function(n){return!!n&&y(n.then)&&y(n.catch)},n.isRegExp=S,n.isString=function(n){return"string"==typeof n},n.isUndefined=function(n){return void 0===n},n.isWindow=function(n){return n&&n===n.window},n.looseEqual=function e(t,r){if(i(t)&&i(r)){if(k(t)&&k(r))return t.length===r.length&&t.every(function(n,t){return e(n,r[t])});if(E(t)&&E(r))return+t==+r;if(S(t)&&S(r))return t.toString()===r.toString();var n=Object.keys(t),o=Object.keys(r);return n.length===o.length&&n.every(function(n){return e(t[n],r[n])})}return t===r},n.map=function(n,t,e){return b(d,n,t,e)},n.noop=function(){},n.sleep=function(t){return new Promise(function(n){setTimeout(n,t)})},n.toString=w,n.type=function(n){return c(n)?n+"":i(n)||y(n)?x[w(n)]||"object":typeof n}},"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n=n||self).celia={});
var n,t;n=this,t=function(n){"use strict";function u(n,t){return n[n.length]=t,n}function c(n){return null==n}function i(n){return null!==n&&"object"==typeof n}function f(n,t){return t?n.bind(t):n}function o(n,t,e,r,o){for(var i=f(r,o),u=t,c=void 0;!1!==c&&u<e;u++)c=i(n[u],u,n)}function r(t,e,n){e=f(e,n);var r=Object.keys(t);o(Object.keys(t),0,r.length,function(n){return e(t[n],n)})}function t(n){if(c(n))throw new TypeError("Cannot convert undefined or null to object");var e=Object(n);return o(arguments,1,arguments.length,function(n){i(n)&&r(n,function(n,t){e[t]=n})}),e}function a(n,t,e){o(n,0,n.length,t,e)}function s(n,t,e){for(var r=f(t,e),o=0,i=void 0;!1!==i&&o<n;o++)i=r(o,o,o)}function l(n){return"number"==typeof n}function e(n){return l(n)&&isFinite(n)&&n>>0===n}function y(n,t,e,r){var o=[],i=f(e,r);return n(t,function(n,t){c(n=i(n,t))||u(o,n)}),o}var b=Object.assign||t;function p(n){return"function"==typeof n}function g(n){return!c(n)&&l(n.length)&&!p(n)}function d(n,t,e){g(n)?a(n,t,e):i(n)||p(n)?r(n,t,e):l(n)&&s(n,t,e)}var v="celia_uid_"+(1e9*Math.random()>>>0),h=0;function j(n){return n[v]||(++h,Object.defineProperty(n,v,{value:h}),h)}var O=Object.prototype.hasOwnProperty;var m=/^([a-z][a-z\d+\-.]*:)?\/\//i;var _=Object.prototype.toString;function w(n){return _.call(n)}function E(n){return n instanceof Date}var A={false:!0,null:!0,undefined:!0,0:!0,NaN:!0,"":!0};var S=Number.isInteger||e;function k(n){return n instanceof RegExp}var x=Array.isArray;var F={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){F["[object "+n+"]"]=n.toLowerCase()}),n._append=u,n._assign=t,n._bindContext=f,n._forEach=a,n._forIn=function(n,t,e){var r=f(t,e);for(var o in n)if(!1===r(n[o],o))break},n._forNumber=s,n._forOwn=r,n._forSlice=o,n._isInteger=e,n._map=y,n.assign=b,n.each=d,n.getEasyHash=function(n){return i(n)?"o"+j(n):(typeof n)[0]+n},n.getUid=j,n.hasOwn=function(n,t){return O.call(n,t)},n.isAbsoluteURL=function(n){return m.test(n)},n.isArrayLike=g,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===w(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=E,n.isFalsy=function(n){return!!A[n]},n.isFunction=p,n.isInteger=S,n.isNil=c,n.isNumber=l,n.isObject=i,n.isPlainObject=function(n){return!c(n)&&"[object Object]"===w(n)},n.isPromiseLike=function(n){return!!n&&p(n.then)&&p(n.catch)},n.isRegExp=k,n.isString=function(n){return"string"==typeof n},n.isUndefined=function(n){return void 0===n},n.isWindow=function(n){return n&&n===n.window},n.looseEqual=function e(t,r){if(i(t)&&i(r)){if(x(t)&&x(r))return t.length===r.length&&t.every(function(n,t){return e(n,r[t])});if(E(t)&&E(r))return+t==+r;if(k(t)&&k(r))return t.toString()===r.toString();var n=Object.keys(t),o=Object.keys(r);return n.length===o.length&&n.every(function(n){return e(t[n],r[n])})}return t===r},n.map=function(n,t,e){return y(d,n,t,e)},n.noop=function(){},n.sleep=function(t){return new Promise(function(n){setTimeout(n,t)})},n.toString=w,n.type=function(n){return c(n)?n+"":i(n)||p(n)?F[w(n)]||"object":typeof n}},"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n=n||self).celia={});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc