Comparing version 6.0.2 to 6.0.3
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
14
amd.js
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -125,16 +125,16 @@ * Released under the MIT License. | ||
function isObject (value) { | ||
return value !== null && typeof value === 'object'; | ||
} | ||
function each (value, cb, context) { | ||
if (isArrayLike(value)) { | ||
forEach(value, cb, context); | ||
} else if (isObject(value) || isFunction(value)) { | ||
forOwn(value, cb, context); | ||
} else if (isNumber(value)) { | ||
forNumber(value, cb, context); | ||
} else if (!isNil(value)) { | ||
forOwn(value, cb, context); | ||
} | ||
} | ||
function isObject (value) { | ||
return value !== null && typeof value === 'object'; | ||
} | ||
var UID_PROPERTY = 'celia_uid_' + ((Math.random() * 1e9) >>> 0); | ||
@@ -141,0 +141,0 @@ var uidCounter = 0; |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (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 t(n,t,r,e){for(;t<r;t++)e(n[t],t,n)}function f(n,t){return t?n.bind(t):n}var r=Object.prototype.hasOwnProperty;function o(n,t){return r.call(n,t)}function e(n,t,r){for(var e in t=f(t,r),n)if(o(n,e)&&!1===t(n[e],e,n))break}function i(n){if(c(n))throw new TypeError("Cannot convert undefined or null to object");var r=Object(n);return t(arguments,1,arguments.length,function(n){c(n)||e(n,function(n,t){r[t]=n})}),r}function a(n,t,r,e,o){e=f(e,o);for(var i=t;i<r;i++)i=!1===e(n[i],i,n)?r:i}function s(n,t,r){a(n,0,n.length,t,r)}function l(n,t,r){t=f(t,r);for(var e=0;e<n;e++)e=!1===t(e,e,n)?n:e}function b(n){return"number"==typeof n}function p(n){return b(n)&&isFinite(n)&&n>>0===n}function y(n,t,r,e){var o=[],i=f(r,e);return n(t,function(n,t){c(n=i(n,t))||u(o,n)}),o}var g=Object.assign||i;function v(n){return"function"==typeof n}function d(n){return!c(n)&&b(n.length)&&!v(n)}function h(n){return null!==n&&"object"==typeof n}function j(n,t,r){d(n)?s(n,t,r):h(n)||v(n)?e(n,t,r):b(n)&&l(n,t,r)}var O="celia_uid_"+(1e9*Math.random()>>>0),_=0;function m(n){return n[O]||(++_,Object.defineProperty(n,O,{value:_}),_)}var w=/^([a-z][a-z\d+\-.]*:)?\/\//i;var E=Object.prototype.toString;function A(n){return E.call(n)}function S(n){return n instanceof Date}var F={false:!0,null:!0,undefined:!0,0:!0,NaN:!0,"":!0};var N=Number.isInteger||p;function k(n){return n instanceof RegExp}var x=Array.isArray;var P={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){P["[object "+n+"]"]=n.toLowerCase()}),n._append=u,n._assign=i,n._bindContext=f,n._forEach=s,n._forIn=function(n,t,r){for(var e in t=f(t,r),n)if(!1===t(n[e],e))break},n._forNumber=l,n._forOwn=e,n._forSlice=a,n._isInteger=p,n._loop=t,n._map=y,n._repeat=function(n,t,r){for(;n<t;n++)r(n,t)},n.assign=g,n.each=j,n.getEasyHash=function(n){return h(n)?"o"+m(n):(typeof n)[0]+n},n.getUid=m,n.hasOwn=o,n.isAbsoluteURL=function(n){return w.test(n)},n.isArrayLike=d,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===A(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=S,n.isFalsy=function(n){return!!F[n]},n.isFunction=v,n.isInteger=N,n.isNil=c,n.isNumber=b,n.isObject=h,n.isPlainObject=function(n){return!c(n)&&"[object Object]"===A(n)},n.isPromiseLike=function(n){return!!n&&v(n.then)&&v(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 r(t,e){if(t===e)return!0;if(h(t)&&h(e)){if(x(t)&&x(e))return t.length===e.length&&t.every(function(n,t){return r(n,e[t])});if(S(t)&&S(e))return+t==+e;if(k(t)&&k(e))return t.toString()===e.toString();var n=Object.keys(t),o=Object.keys(e);return n.length===o.length&&n.every(function(n){return r(t[n],e[n])})}return!1},n.map=function(n,t,r){return y(j,n,t,r)},n.noop=function(){},n.sleep=function(t){return new Promise(function(n){setTimeout(n,t)})},n.toString=A,n.type=function(n){return c(n)?n+"":h(n)||v(n)?P[A(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 t(n,t,r,e){for(;t<r;t++)e(n[t],t,n)}function f(n,t){return t?n.bind(t):n}var r=Object.prototype.hasOwnProperty;function o(n,t){return r.call(n,t)}function e(n,t,r){for(var e in t=f(t,r),n)if(o(n,e)&&!1===t(n[e],e,n))break}function i(n){if(c(n))throw new TypeError("Cannot convert undefined or null to object");var r=Object(n);return t(arguments,1,arguments.length,function(n){c(n)||e(n,function(n,t){r[t]=n})}),r}function a(n,t,r,e,o){e=f(e,o);for(var i=t;i<r;i++)i=!1===e(n[i],i,n)?r:i}function s(n,t,r){a(n,0,n.length,t,r)}function l(n,t,r){t=f(t,r);for(var e=0;e<n;e++)e=!1===t(e,e,n)?n:e}function b(n){return"number"==typeof n}function p(n){return b(n)&&isFinite(n)&&n>>0===n}function y(n,t,r,e){var o=[],i=f(r,e);return n(t,function(n,t){c(n=i(n,t))||u(o,n)}),o}var g=Object.assign||i;function v(n){return"function"==typeof n}function d(n){return!c(n)&&b(n.length)&&!v(n)}function h(n,t,r){d(n)?s(n,t,r):b(n)?l(n,t,r):c(n)||e(n,t,r)}function j(n){return null!==n&&"object"==typeof n}var O="celia_uid_"+(1e9*Math.random()>>>0),_=0;function m(n){return n[O]||(++_,Object.defineProperty(n,O,{value:_}),_)}var w=/^([a-z][a-z\d+\-.]*:)?\/\//i;var E=Object.prototype.toString;function A(n){return E.call(n)}function S(n){return n instanceof Date}var F={false:!0,null:!0,undefined:!0,0:!0,NaN:!0,"":!0};var N=Number.isInteger||p;function k(n){return n instanceof RegExp}var x=Array.isArray;var P={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){P["[object "+n+"]"]=n.toLowerCase()}),n._append=u,n._assign=i,n._bindContext=f,n._forEach=s,n._forIn=function(n,t,r){for(var e in t=f(t,r),n)if(!1===t(n[e],e))break},n._forNumber=l,n._forOwn=e,n._forSlice=a,n._isInteger=p,n._loop=t,n._map=y,n._repeat=function(n,t,r){for(;n<t;n++)r(n,t)},n.assign=g,n.each=h,n.getEasyHash=function(n){return j(n)?"o"+m(n):(typeof n)[0]+n},n.getUid=m,n.hasOwn=o,n.isAbsoluteURL=function(n){return w.test(n)},n.isArrayLike=d,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===A(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=S,n.isFalsy=function(n){return!!F[n]},n.isFunction=v,n.isInteger=N,n.isNil=c,n.isNumber=b,n.isObject=j,n.isPlainObject=function(n){return!c(n)&&"[object Object]"===A(n)},n.isPromiseLike=function(n){return!!n&&v(n.then)&&v(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 r(t,e){if(t===e)return!0;if(j(t)&&j(e)){if(x(t)&&x(e))return t.length===e.length&&t.every(function(n,t){return r(n,e[t])});if(S(t)&&S(e))return+t==+e;if(k(t)&&k(e))return t.toString()===e.toString();var n=Object.keys(t),o=Object.keys(e);return n.length===o.length&&n.every(function(n){return r(t[n],e[n])})}return!1},n.map=function(n,t,r){return y(h,n,t,r)},n.noop=function(){},n.sleep=function(t){return new Promise(function(n){setTimeout(n,t)})},n.toString=A,n.type=function(n){return c(n)?n+"":j(n)||v(n)?P[A(n)]||"object":typeof n}}); |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
14
cjs.js
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -125,16 +125,16 @@ * Released under the MIT License. | ||
function isObject (value) { | ||
return value !== null && typeof value === 'object'; | ||
} | ||
function each (value, cb, context) { | ||
if (isArrayLike(value)) { | ||
forEach(value, cb, context); | ||
} else if (isObject(value) || isFunction(value)) { | ||
forOwn(value, cb, context); | ||
} else if (isNumber(value)) { | ||
forNumber(value, cb, context); | ||
} else if (!isNil(value)) { | ||
forOwn(value, cb, context); | ||
} | ||
} | ||
function isObject (value) { | ||
return value !== null && typeof value === 'object'; | ||
} | ||
var UID_PROPERTY = 'celia_uid_' + ((Math.random() * 1e9) >>> 0); | ||
@@ -141,0 +141,0 @@ var uidCounter = 0; |
11
each.js
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -8,3 +8,3 @@ * Released under the MIT License. | ||
require('./isNil.js'); | ||
var isNil = require('./isNil.js'); | ||
require('./_bindContext.js'); | ||
@@ -17,5 +17,4 @@ require('./hasOwn.js'); | ||
var isNumber = require('./isNumber.js'); | ||
var isFunction = require('./isFunction.js'); | ||
require('./isFunction.js'); | ||
var isArrayLike = require('./isArrayLike.js'); | ||
var isObject = require('./isObject.js'); | ||
@@ -25,6 +24,6 @@ function each (value, cb, context) { | ||
_forEach(value, cb, context); | ||
} else if (isObject(value) || isFunction(value)) { | ||
_forOwn(value, cb, context); | ||
} else if (isNumber(value)) { | ||
_forNumber(value, cb, context); | ||
} else if (!isNil(value)) { | ||
_forOwn(value, cb, context); | ||
} | ||
@@ -31,0 +30,0 @@ } |
14
es.js
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -123,16 +123,16 @@ * Released under the MIT License. | ||
function isObject (value) { | ||
return value !== null && typeof value === 'object'; | ||
} | ||
function each (value, cb, context) { | ||
if (isArrayLike(value)) { | ||
forEach(value, cb, context); | ||
} else if (isObject(value) || isFunction(value)) { | ||
forOwn(value, cb, context); | ||
} else if (isNumber(value)) { | ||
forNumber(value, cb, context); | ||
} else if (!isNil(value)) { | ||
forOwn(value, cb, context); | ||
} | ||
} | ||
function isObject (value) { | ||
return value !== null && typeof value === 'object'; | ||
} | ||
var UID_PROPERTY = 'celia_uid_' + ((Math.random() * 1e9) >>> 0); | ||
@@ -139,0 +139,0 @@ var uidCounter = 0; |
import isArrayLike from './isArrayLike'; | ||
import isNumber from './isNumber'; | ||
import isObject from './isObject'; | ||
import isFunction from './isFunction'; | ||
import forEach from './_forEach'; | ||
import forOwn from './_forOwn'; | ||
import forNumber from './_forNumber'; | ||
import isNil from './isNil'; | ||
@@ -12,7 +11,7 @@ export default function (value, cb, context) { | ||
forEach(value, cb, context); | ||
} else if (isObject(value) || isFunction(value)) { | ||
forOwn(value, cb, context); | ||
} else if (isNumber(value)) { | ||
forNumber(value, cb, context); | ||
} else if (!isNil(value)) { | ||
forOwn(value, cb, context); | ||
} | ||
}; |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
14
iife.js
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -126,16 +126,16 @@ * Released under the MIT License. | ||
function isObject (value) { | ||
return value !== null && typeof value === 'object'; | ||
} | ||
function each (value, cb, context) { | ||
if (isArrayLike(value)) { | ||
forEach(value, cb, context); | ||
} else if (isObject(value) || isFunction(value)) { | ||
forOwn(value, cb, context); | ||
} else if (isNumber(value)) { | ||
forNumber(value, cb, context); | ||
} else if (!isNil(value)) { | ||
forOwn(value, cb, context); | ||
} | ||
} | ||
function isObject (value) { | ||
return value !== null && typeof value === 'object'; | ||
} | ||
var UID_PROPERTY = 'celia_uid_' + ((Math.random() * 1e9) >>> 0); | ||
@@ -142,0 +142,0 @@ var uidCounter = 0; |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (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 t(n,t,r,e){for(;t<r;t++)e(n[t],t,n)}function f(n,t){return t?n.bind(t):n}var r=Object.prototype.hasOwnProperty;function o(n,t){return r.call(n,t)}function e(n,t,r){for(var e in t=f(t,r),n)if(o(n,e)&&!1===t(n[e],e,n))break}function i(n){if(c(n))throw new TypeError("Cannot convert undefined or null to object");var r=Object(n);return t(arguments,1,arguments.length,function(n){c(n)||e(n,function(n,t){r[t]=n})}),r}function a(n,t,r,e,o){e=f(e,o);for(var i=t;i<r;i++)i=!1===e(n[i],i,n)?r:i}function s(n,t,r){a(n,0,n.length,t,r)}function l(n,t,r){t=f(t,r);for(var e=0;e<n;e++)e=!1===t(e,e,n)?n:e}function b(n){return"number"==typeof n}function p(n){return b(n)&&isFinite(n)&&n>>0===n}function y(n,t,r,e){var o=[],i=f(r,e);return n(t,function(n,t){c(n=i(n,t))||u(o,n)}),o}var g=Object.assign||i;function v(n){return"function"==typeof n}function h(n){return!c(n)&&b(n.length)&&!v(n)}function d(n){return null!==n&&"object"==typeof n}function j(n,t,r){h(n)?s(n,t,r):d(n)||v(n)?e(n,t,r):b(n)&&l(n,t,r)}var O="celia_uid_"+(1e9*Math.random()>>>0),_=0;function m(n){return n[O]||(++_,Object.defineProperty(n,O,{value:_}),_)}var w=/^([a-z][a-z\d+\-.]*:)?\/\//i;var E=Object.prototype.toString;function A(n){return E.call(n)}function S(n){return n instanceof Date}var F={false:!0,null:!0,undefined:!0,0:!0,NaN:!0,"":!0};var N=Number.isInteger||p;function k(n){return n instanceof RegExp}var P=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=i,n._bindContext=f,n._forEach=s,n._forIn=function(n,t,r){for(var e in t=f(t,r),n)if(!1===t(n[e],e))break},n._forNumber=l,n._forOwn=e,n._forSlice=a,n._isInteger=p,n._loop=t,n._map=y,n._repeat=function(n,t,r){for(;n<t;n++)r(n,t)},n.assign=g,n.each=j,n.getEasyHash=function(n){return d(n)?"o"+m(n):(typeof n)[0]+n},n.getUid=m,n.hasOwn=o,n.isAbsoluteURL=function(n){return w.test(n)},n.isArrayLike=h,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===A(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=S,n.isFalsy=function(n){return!!F[n]},n.isFunction=v,n.isInteger=N,n.isNil=c,n.isNumber=b,n.isObject=d,n.isPlainObject=function(n){return!c(n)&&"[object Object]"===A(n)},n.isPromiseLike=function(n){return!!n&&v(n.then)&&v(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 r(t,e){if(t===e)return!0;if(d(t)&&d(e)){if(P(t)&&P(e))return t.length===e.length&&t.every(function(n,t){return r(n,e[t])});if(S(t)&&S(e))return+t==+e;if(k(t)&&k(e))return t.toString()===e.toString();var n=Object.keys(t),o=Object.keys(e);return n.length===o.length&&n.every(function(n){return r(t[n],e[n])})}return!1},n.map=function(n,t,r){return y(j,n,t,r)},n.noop=function(){},n.sleep=function(t){return new Promise(function(n){setTimeout(n,t)})},n.toString=A,n.type=function(n){return c(n)?n+"":d(n)||v(n)?x[A(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 t(n,t,r,e){for(;t<r;t++)e(n[t],t,n)}function f(n,t){return t?n.bind(t):n}var r=Object.prototype.hasOwnProperty;function o(n,t){return r.call(n,t)}function e(n,t,r){for(var e in t=f(t,r),n)if(o(n,e)&&!1===t(n[e],e,n))break}function i(n){if(c(n))throw new TypeError("Cannot convert undefined or null to object");var r=Object(n);return t(arguments,1,arguments.length,function(n){c(n)||e(n,function(n,t){r[t]=n})}),r}function a(n,t,r,e,o){e=f(e,o);for(var i=t;i<r;i++)i=!1===e(n[i],i,n)?r:i}function s(n,t,r){a(n,0,n.length,t,r)}function l(n,t,r){t=f(t,r);for(var e=0;e<n;e++)e=!1===t(e,e,n)?n:e}function b(n){return"number"==typeof n}function p(n){return b(n)&&isFinite(n)&&n>>0===n}function y(n,t,r,e){var o=[],i=f(r,e);return n(t,function(n,t){c(n=i(n,t))||u(o,n)}),o}var g=Object.assign||i;function v(n){return"function"==typeof n}function h(n){return!c(n)&&b(n.length)&&!v(n)}function d(n,t,r){h(n)?s(n,t,r):b(n)?l(n,t,r):c(n)||e(n,t,r)}function j(n){return null!==n&&"object"==typeof n}var O="celia_uid_"+(1e9*Math.random()>>>0),_=0;function m(n){return n[O]||(++_,Object.defineProperty(n,O,{value:_}),_)}var w=/^([a-z][a-z\d+\-.]*:)?\/\//i;var E=Object.prototype.toString;function A(n){return E.call(n)}function S(n){return n instanceof Date}var F={false:!0,null:!0,undefined:!0,0:!0,NaN:!0,"":!0};var N=Number.isInteger||p;function k(n){return n instanceof RegExp}var P=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=i,n._bindContext=f,n._forEach=s,n._forIn=function(n,t,r){for(var e in t=f(t,r),n)if(!1===t(n[e],e))break},n._forNumber=l,n._forOwn=e,n._forSlice=a,n._isInteger=p,n._loop=t,n._map=y,n._repeat=function(n,t,r){for(;n<t;n++)r(n,t)},n.assign=g,n.each=d,n.getEasyHash=function(n){return j(n)?"o"+m(n):(typeof n)[0]+n},n.getUid=m,n.hasOwn=o,n.isAbsoluteURL=function(n){return w.test(n)},n.isArrayLike=h,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===A(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=S,n.isFalsy=function(n){return!!F[n]},n.isFunction=v,n.isInteger=N,n.isNil=c,n.isNumber=b,n.isObject=j,n.isPlainObject=function(n){return!c(n)&&"[object Object]"===A(n)},n.isPromiseLike=function(n){return!!n&&v(n.then)&&v(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 r(t,e){if(t===e)return!0;if(j(t)&&j(e)){if(P(t)&&P(e))return t.length===e.length&&t.every(function(n,t){return r(n,e[t])});if(S(t)&&S(e))return+t==+e;if(k(t)&&k(e))return t.toString()===e.toString();var n=Object.keys(t),o=Object.keys(e);return n.length===o.length&&n.every(function(n){return r(t[n],e[n])})}return!1},n.map=function(n,t,r){return y(d,n,t,r)},n.noop=function(){},n.sleep=function(t){return new Promise(function(n){setTimeout(n,t)})},n.toString=A,n.type=function(n){return c(n)?n+"":j(n)||v(n)?x[A(n)]||"object":typeof n}}({}); |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -26,4 +26,4 @@ * Released under the MIT License. | ||
var isArrayLike = require('./isArrayLike.js'); | ||
var each = require('./each.js'); | ||
var isObject = require('./isObject.js'); | ||
var each = require('./each.js'); | ||
var getUid = require('./getUid.js'); | ||
@@ -70,4 +70,4 @@ var getEasyHash = require('./getEasyHash.js'); | ||
exports.isArrayLike = isArrayLike; | ||
exports.each = each; | ||
exports.isObject = isObject; | ||
exports.each = each; | ||
exports.getUid = getUid; | ||
@@ -74,0 +74,0 @@ exports.getEasyHash = getEasyHash; |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -20,3 +20,2 @@ * Released under the MIT License. | ||
require('./isArrayLike.js'); | ||
require('./isObject.js'); | ||
var each = require('./each.js'); | ||
@@ -23,0 +22,0 @@ |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
{ | ||
"name": "celia", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"description": "A modern JavaScript utility library delivering modularity, performance, and extras.", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
14
umd.js
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -129,16 +129,16 @@ * Released under the MIT License. | ||
function isObject (value) { | ||
return value !== null && typeof value === 'object'; | ||
} | ||
function each (value, cb, context) { | ||
if (isArrayLike(value)) { | ||
forEach(value, cb, context); | ||
} else if (isObject(value) || isFunction(value)) { | ||
forOwn(value, cb, context); | ||
} else if (isNumber(value)) { | ||
forNumber(value, cb, context); | ||
} else if (!isNil(value)) { | ||
forOwn(value, cb, context); | ||
} | ||
} | ||
function isObject (value) { | ||
return value !== null && typeof value === 'object'; | ||
} | ||
var UID_PROPERTY = 'celia_uid_' + ((Math.random() * 1e9) >>> 0); | ||
@@ -145,0 +145,0 @@ var uidCounter = 0; |
/* | ||
* celia.js v6.0.2 | ||
* celia.js v6.0.3 | ||
* (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 f(n){return null==n}function t(n,t,e,r){for(;t<e;t++)r(n[t],t,n)}function c(n,t){return t?n.bind(t):n}var e=Object.prototype.hasOwnProperty;function o(n,t){return e.call(n,t)}function r(n,t,e){for(var r in t=c(t,e),n)if(o(n,r)&&!1===t(n[r],r,n))break}function i(n){if(f(n))throw new TypeError("Cannot convert undefined or null to object");var e=Object(n);return t(arguments,1,arguments.length,function(n){f(n)||r(n,function(n,t){e[t]=n})}),e}function a(n,t,e,r,o){r=c(r,o);for(var i=t;i<e;i++)i=!1===r(n[i],i,n)?e:i}function s(n,t,e){a(n,0,n.length,t,e)}function l(n,t,e){t=c(t,e);for(var r=0;r<n;r++)r=!1===t(r,r,n)?n:r}function p(n){return"number"==typeof n}function b(n){return p(n)&&isFinite(n)&&n>>0===n}function y(n,t,e,r){var o=[],i=c(e,r);return n(t,function(n,t){f(n=i(n,t))||u(o,n)}),o}var g=Object.assign||i;function d(n){return"function"==typeof n}function v(n){return!f(n)&&p(n.length)&&!d(n)}function h(n){return null!==n&&"object"==typeof n}function j(n,t,e){v(n)?s(n,t,e):h(n)||d(n)?r(n,t,e):p(n)&&l(n,t,e)}var m="celia_uid_"+(1e9*Math.random()>>>0),O=0;function _(n){return n[m]||(++O,Object.defineProperty(n,m,{value:O}),O)}var w=/^([a-z][a-z\d+\-.]*:)?\/\//i;var E=Object.prototype.toString;function A(n){return E.call(n)}function S(n){return n instanceof Date}var x={false:!0,null:!0,undefined:!0,0:!0,NaN:!0,"":!0};var F=Number.isInteger||b;function N(n){return n instanceof RegExp}var k=Array.isArray;var P={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){P["[object "+n+"]"]=n.toLowerCase()}),n._append=u,n._assign=i,n._bindContext=c,n._forEach=s,n._forIn=function(n,t,e){for(var r in t=c(t,e),n)if(!1===t(n[r],r))break},n._forNumber=l,n._forOwn=r,n._forSlice=a,n._isInteger=b,n._loop=t,n._map=y,n._repeat=function(n,t,e){for(;n<t;n++)e(n,t)},n.assign=g,n.each=j,n.getEasyHash=function(n){return h(n)?"o"+_(n):(typeof n)[0]+n},n.getUid=_,n.hasOwn=o,n.isAbsoluteURL=function(n){return w.test(n)},n.isArrayLike=v,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===A(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=S,n.isFalsy=function(n){return!!x[n]},n.isFunction=d,n.isInteger=F,n.isNil=f,n.isNumber=p,n.isObject=h,n.isPlainObject=function(n){return!f(n)&&"[object Object]"===A(n)},n.isPromiseLike=function(n){return!!n&&d(n.then)&&d(n.catch)},n.isRegExp=N,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(t===r)return!0;if(h(t)&&h(r)){if(k(t)&&k(r))return t.length===r.length&&t.every(function(n,t){return e(n,r[t])});if(S(t)&&S(r))return+t==+r;if(N(t)&&N(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!1},n.map=function(n,t,e){return y(j,n,t,e)},n.noop=function(){},n.sleep=function(t){return new Promise(function(n){setTimeout(n,t)})},n.toString=A,n.type=function(n){return f(n)?n+"":h(n)||d(n)?P[A(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 f(n){return null==n}function t(n,t,e,r){for(;t<e;t++)r(n[t],t,n)}function c(n,t){return t?n.bind(t):n}var e=Object.prototype.hasOwnProperty;function o(n,t){return e.call(n,t)}function r(n,t,e){for(var r in t=c(t,e),n)if(o(n,r)&&!1===t(n[r],r,n))break}function i(n){if(f(n))throw new TypeError("Cannot convert undefined or null to object");var e=Object(n);return t(arguments,1,arguments.length,function(n){f(n)||r(n,function(n,t){e[t]=n})}),e}function a(n,t,e,r,o){r=c(r,o);for(var i=t;i<e;i++)i=!1===r(n[i],i,n)?e:i}function s(n,t,e){a(n,0,n.length,t,e)}function l(n,t,e){t=c(t,e);for(var r=0;r<n;r++)r=!1===t(r,r,n)?n:r}function p(n){return"number"==typeof n}function b(n){return p(n)&&isFinite(n)&&n>>0===n}function y(n,t,e,r){var o=[],i=c(e,r);return n(t,function(n,t){f(n=i(n,t))||u(o,n)}),o}var g=Object.assign||i;function d(n){return"function"==typeof n}function v(n){return!f(n)&&p(n.length)&&!d(n)}function h(n,t,e){v(n)?s(n,t,e):p(n)?l(n,t,e):f(n)||r(n,t,e)}function j(n){return null!==n&&"object"==typeof n}var m="celia_uid_"+(1e9*Math.random()>>>0),O=0;function _(n){return n[m]||(++O,Object.defineProperty(n,m,{value:O}),O)}var w=/^([a-z][a-z\d+\-.]*:)?\/\//i;var E=Object.prototype.toString;function A(n){return E.call(n)}function S(n){return n instanceof Date}var x={false:!0,null:!0,undefined:!0,0:!0,NaN:!0,"":!0};var F=Number.isInteger||b;function N(n){return n instanceof RegExp}var k=Array.isArray;var P={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){P["[object "+n+"]"]=n.toLowerCase()}),n._append=u,n._assign=i,n._bindContext=c,n._forEach=s,n._forIn=function(n,t,e){for(var r in t=c(t,e),n)if(!1===t(n[r],r))break},n._forNumber=l,n._forOwn=r,n._forSlice=a,n._isInteger=b,n._loop=t,n._map=y,n._repeat=function(n,t,e){for(;n<t;n++)e(n,t)},n.assign=g,n.each=h,n.getEasyHash=function(n){return j(n)?"o"+_(n):(typeof n)[0]+n},n.getUid=_,n.hasOwn=o,n.isAbsoluteURL=function(n){return w.test(n)},n.isArrayLike=v,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===A(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=S,n.isFalsy=function(n){return!!x[n]},n.isFunction=d,n.isInteger=F,n.isNil=f,n.isNumber=p,n.isObject=j,n.isPlainObject=function(n){return!f(n)&&"[object Object]"===A(n)},n.isPromiseLike=function(n){return!!n&&d(n.then)&&d(n.catch)},n.isRegExp=N,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(t===r)return!0;if(j(t)&&j(r)){if(k(t)&&k(r))return t.length===r.length&&t.every(function(n,t){return e(n,r[t])});if(S(t)&&S(r))return+t==+r;if(N(t)&&N(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!1},n.map=function(n,t,e){return y(h,n,t,e)},n.noop=function(){},n.sleep=function(t){return new Promise(function(n){setTimeout(n,t)})},n.toString=A,n.type=function(n){return f(n)?n+"":j(n)||d(n)?P[A(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={}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76519
2217