Comparing version 5.1.2 to 5.1.3
@@ -6,3 +6,3 @@ import iteratorCallback from '../_array/_iteratorCB'; | ||
for (let key in value) { | ||
if (handler(cb, value[key], key)) { | ||
if (handler(cb, value[key], key) === false) { | ||
break; | ||
@@ -9,0 +9,0 @@ }; |
@@ -5,5 +5,5 @@ import _for from './_for'; | ||
_for( | ||
(cb, val, key) => cb(val, key, value) === false, | ||
(cb, val, key) => cb(val, key, value), | ||
value, iterator, context | ||
); | ||
}; |
@@ -5,5 +5,5 @@ import _for from './_for'; | ||
_for( | ||
(cb, val, key) => value.hasOwnProperty(key) && cb(val, key, value) === false, | ||
(cb, val, key) => value.hasOwnProperty(key) && cb(val, key, value), | ||
value, iterator, context | ||
); | ||
}; |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -64,3 +64,3 @@ * Released under the MIT License. | ||
for (var key in value) { | ||
if (handler(cb, value[key], key)) { | ||
if (handler(cb, value[key], key) === false) { | ||
break; | ||
@@ -72,3 +72,3 @@ } } | ||
_for( | ||
function (cb, val, key) { return value.hasOwnProperty(key) && cb(val, key, value) === false; }, | ||
function (cb, val, key) { return value.hasOwnProperty(key) && cb(val, key, value); }, | ||
value, iterator, context | ||
@@ -224,3 +224,3 @@ ); | ||
_for( | ||
function (cb, val, key) { return cb(val, key, value) === false; }, | ||
function (cb, val, key) { return cb(val, key, value); }, | ||
value, iterator, context | ||
@@ -242,2 +242,3 @@ ); | ||
forOwn: forOwn$1, | ||
get: get, | ||
map: map$3 | ||
@@ -307,3 +308,3 @@ }; | ||
var RAW_DATA_TYPES = {}; | ||
'Boolean,Number,String,Function,Array,Date,RegExp,Object,Error,Symbol'.split(',').forEach(function (name) { | ||
'Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol'.split(',').forEach(function (name) { | ||
RAW_DATA_TYPES[("[object " + name + "]")] = name.toLowerCase(); | ||
@@ -310,0 +311,0 @@ }); |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -62,3 +62,3 @@ * Released under the MIT License. | ||
for (var key in value) { | ||
if (handler(cb, value[key], key)) { | ||
if (handler(cb, value[key], key) === false) { | ||
break; | ||
@@ -70,3 +70,3 @@ } } | ||
_for( | ||
function (cb, val, key) { return value.hasOwnProperty(key) && cb(val, key, value) === false; }, | ||
function (cb, val, key) { return value.hasOwnProperty(key) && cb(val, key, value); }, | ||
value, iterator, context | ||
@@ -222,3 +222,3 @@ ); | ||
_for( | ||
function (cb, val, key) { return cb(val, key, value) === false; }, | ||
function (cb, val, key) { return cb(val, key, value); }, | ||
value, iterator, context | ||
@@ -240,2 +240,3 @@ ); | ||
forOwn: forOwn$1, | ||
get: get, | ||
map: map$3 | ||
@@ -305,3 +306,3 @@ }; | ||
var RAW_DATA_TYPES = {}; | ||
'Boolean,Number,String,Function,Array,Date,RegExp,Object,Error,Symbol'.split(',').forEach(function (name) { | ||
'Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol'.split(',').forEach(function (name) { | ||
RAW_DATA_TYPES[("[object " + name + "]")] = name.toLowerCase(); | ||
@@ -308,0 +309,0 @@ }); |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -68,3 +68,3 @@ * Released under the MIT License. | ||
for (var key in value) { | ||
if (handler(cb, value[key], key)) { | ||
if (handler(cb, value[key], key) === false) { | ||
break; | ||
@@ -76,3 +76,3 @@ } } | ||
_for( | ||
function (cb, val, key) { return value.hasOwnProperty(key) && cb(val, key, value) === false; }, | ||
function (cb, val, key) { return value.hasOwnProperty(key) && cb(val, key, value); }, | ||
value, iterator, context | ||
@@ -228,3 +228,3 @@ ); | ||
_for( | ||
function (cb, val, key) { return cb(val, key, value) === false; }, | ||
function (cb, val, key) { return cb(val, key, value); }, | ||
value, iterator, context | ||
@@ -246,2 +246,3 @@ ); | ||
forOwn: forOwn$1, | ||
get: get, | ||
map: map$3 | ||
@@ -311,3 +312,3 @@ }; | ||
var RAW_DATA_TYPES = {}; | ||
'Boolean,Number,String,Function,Array,Date,RegExp,Object,Error,Symbol'.split(',').forEach(function (name) { | ||
'Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol'.split(',').forEach(function (name) { | ||
RAW_DATA_TYPES[("[object " + name + "]")] = name.toLowerCase(); | ||
@@ -314,0 +315,0 @@ }); |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
* Released under the MIT License. | ||
*/ | ||
var n,t;n=this,t=function(){"use strict";var n={objectobject:7,objectundefined:6};var t={msie:function(){return document.documentMode||n[typeof document.all+typeof XMLHttpRequest]}},e=/-([a-z])/g;function f(n){return null==n}function r(n){return"function"==typeof n}function o(n){return"number"==typeof n}function u(n){return!f(n)&&o(n.length)&&!r(n)}function a(n,t){return t?n.bind(t):n}function i(n,t,e,r,o){for(var u=a(r,o),i=t,c=void 0;!1!==c&&i<e;i++)c=u(n[i],i,n)}function c(n,t,e){i(n,0,n.length,t,e)}function s(n,t,e,r){var o=a(e,r);for(var u in t)if(n(o,t[u],u))break}function p(r,n,t){s(function(n,t,e){return r.hasOwnProperty(e)&&!1===n(t,e,r)},r,n,t)}function d(n,t,e){for(var r=a(t,e),o=0,u=void 0;!1!==u&&o<n;o++)u=r(o,o,o)}function l(n,t,e){n&&(u(n)?c(n,t,e):o(n)?d(n,t,e):p(n,t,e))}function v(n,t,e){return n&&d(n,t,e)}function b(n){return!f(n)&&"object"==typeof n}function m(n,t,e){return b(n)&&p(n,t,e)}function g(n){return void 0===n}var y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,j=/\\(\\)?/g;var h="celia_uid_"+(1e9*Math.random()>>>0),w=0;var x=Object.prototype.toString;function O(n){return x.call(n)}function A(n){return"string"==typeof n}function C(n,t){return n[n.length]=t,n}function E(n,t,e,r){var o=[],u=a(e,r);return n(t,function(n,t){f(n=u(n,t))||C(o,n)}),o}var N={forNumber:v,map:function(n,t,e){return E(v,n,t,e)}};var R={assign:Object.assign||function(n){if(f(n))throw new TypeError("Cannot convert undefined or null to object");var e=Object(n);return i(arguments,1,arguments.length,function(n){m(n,function(n,t){e[t]=n})}),e},forIn:function(n,t,e){return b(n)&&function(r,n,t){s(function(n,t,e){return!1===n(t,e,r)},r,n,t)}(n,t,e)},forOwn:m,map:function(n,t,e){return E(m,n,t,e)}};function U(n){return decodeURIComponent(n.replace(/\+/g," "))}var F=/([^=?&]+)=?([^&]*)/g,I=Array.isArray;var L={parse:function(n){var t={};if(A(n))for(var e;e=F.exec(n);){var r=e[1];if(e[0]!==r){var o=e[2],u=t[r];g(u)?t[r]=U(o):I(u)?C(u,U(o)):t[r]=[u,U(o)]}}return t},prefix:function(n,t){return n?(t||"?")+n:n},stringify:function(n,t,e){void 0===t&&(t="&"),void 0===e&&(e="=");var r=[];return m(n,function(n,t){n||!f(n)&&!isNaN(n)||(n=""),C(r,encodeURIComponent(t)+e+encodeURIComponent(n))}),r.length?r.join(t):""}};var S={};"Boolean,Number,String,Function,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){S["[object "+n+"]"]=n.toLowerCase()});var k={isAbsolute:function(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)},join:function(n){var t=arguments.length;f(n)?1<t&&(n=""):n=n.replace(/\/+$/,"");var e="";return i(arguments,1,t,function(n){n&&(e+="/",e+=n)}),e&&(n+=e.replace(/\/+/g,"/")),n}};return{browser:t,camelCase:function(n){return n.replace(e,function(n,t){return t.toUpperCase()})},each:l,forEach:function(n,t,e){return n&&c(n,t,e)},forNumber:v,forOwn:m,get:function(n,t,e){for(var r;!f(n)&&(r=y.exec(t));){var o=r[0],u=r[1],i=r[2],c=r[3];n=n[i?c.replace(j,"$1"):u||o]}return g(n)?e:n},getUid:function(n){return n[h]||(n[h]=++w)},isArrayLike:u,isAsyncFunction:function(n){return"[object AsyncFunction]"===O(n)},isBoolean:function(n){return"boolean"==typeof n},isDate:function(n){return"[object Date]"===O(n)},isFunction:r,isNil:f,isNumber:o,isObject:b,isPromiseLike:function(n){return!!n&&r(n.then)},isRegExp:function(n){return"[object RegExp]"===O(n)},isString:A,isUndefined:g,isWindow:function(n){return n&&n===n.window},map:function(n,t,e){return E(l,n,t,e)},number:N,object:R,qs:L,sleep:function(t){return new Promise(function(n){setTimeout(n,t)})},type:function(n){return f(n)?n+"":b(n)||r(n)?S[O(n)]||"object":typeof n},url:k}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).celia=t(); | ||
var n,t;n=this,t=function(){"use strict";var n={objectobject:7,objectundefined:6};var t={msie:function(){return document.documentMode||n[typeof document.all+typeof XMLHttpRequest]}},e=/-([a-z])/g;function f(n){return null==n}function r(n){return"function"==typeof n}function o(n){return"number"==typeof n}function u(n){return!f(n)&&o(n.length)&&!r(n)}function a(n,t){return t?n.bind(t):n}function i(n,t,e,r,o){for(var u=a(r,o),i=t,c=void 0;!1!==c&&i<e;i++)c=u(n[i],i,n)}function c(n,t,e){i(n,0,n.length,t,e)}function s(n,t,e,r){var o=a(e,r);for(var u in t)if(!1===n(o,t[u],u))break}function p(r,n,t){s(function(n,t,e){return r.hasOwnProperty(e)&&n(t,e,r)},r,n,t)}function d(n,t,e){for(var r=a(t,e),o=0,u=void 0;!1!==u&&o<n;o++)u=r(o,o,o)}function l(n,t,e){n&&(u(n)?c(n,t,e):o(n)?d(n,t,e):p(n,t,e))}function v(n,t,e){return n&&d(n,t,e)}function b(n){return!f(n)&&"object"==typeof n}function g(n,t,e){return b(n)&&p(n,t,e)}function m(n){return void 0===n}var y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,j=/\\(\\)?/g;function h(n,t,e){for(var r;!f(n)&&(r=y.exec(t));){var o=r[0],u=r[1],i=r[2],c=r[3];n=n[i?c.replace(j,"$1"):u||o]}return m(n)?e:n}var w="celia_uid_"+(1e9*Math.random()>>>0),x=0;var A=Object.prototype.toString;function O(n){return A.call(n)}function C(n){return"string"==typeof n}function E(n,t){return n[n.length]=t,n}function N(n,t,e,r){var o=[],u=a(e,r);return n(t,function(n,t){f(n=u(n,t))||E(o,n)}),o}var R={forNumber:v,map:function(n,t,e){return N(v,n,t,e)}};var U={assign:Object.assign||function(n){if(f(n))throw new TypeError("Cannot convert undefined or null to object");var e=Object(n);return i(arguments,1,arguments.length,function(n){g(n,function(n,t){e[t]=n})}),e},forIn:function(n,t,e){return b(n)&&function(r,n,t){s(function(n,t,e){return n(t,e,r)},r,n,t)}(n,t,e)},forOwn:g,get:h,map:function(n,t,e){return N(g,n,t,e)}};function F(n){return decodeURIComponent(n.replace(/\+/g," "))}var I=/([^=?&]+)=?([^&]*)/g,L=Array.isArray;var S={parse:function(n){var t={};if(C(n))for(var e;e=I.exec(n);){var r=e[1];if(e[0]!==r){var o=e[2],u=t[r];m(u)?t[r]=F(o):L(u)?E(u,F(o)):t[r]=[u,F(o)]}}return t},prefix:function(n,t){return n?(t||"?")+n:n},stringify:function(n,t,e){void 0===t&&(t="&"),void 0===e&&(e="=");var r=[];return g(n,function(n,t){n||!f(n)&&!isNaN(n)||(n=""),E(r,encodeURIComponent(t)+e+encodeURIComponent(n))}),r.length?r.join(t):""}};var k={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){k["[object "+n+"]"]=n.toLowerCase()});var z={isAbsolute:function(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)},join:function(n){var t=arguments.length;f(n)?1<t&&(n=""):n=n.replace(/\/+$/,"");var e="";return i(arguments,1,t,function(n){n&&(e+="/",e+=n)}),e&&(n+=e.replace(/\/+/g,"/")),n}};return{browser:t,camelCase:function(n){return n.replace(e,function(n,t){return t.toUpperCase()})},each:l,forEach:function(n,t,e){return n&&c(n,t,e)},forNumber:v,forOwn:g,get:h,getUid:function(n){return n[w]||(n[w]=++x)},isArrayLike:u,isAsyncFunction:function(n){return"[object AsyncFunction]"===O(n)},isBoolean:function(n){return"boolean"==typeof n},isDate:function(n){return"[object Date]"===O(n)},isFunction:r,isNil:f,isNumber:o,isObject:b,isPromiseLike:function(n){return!!n&&r(n.then)},isRegExp:function(n){return"[object RegExp]"===O(n)},isString:C,isUndefined:m,isWindow:function(n){return n&&n===n.window},map:function(n,t,e){return N(l,n,t,e)},number:R,object:U,qs:S,sleep:function(t){return new Promise(function(n){setTimeout(n,t)})},type:function(n){return f(n)?n+"":b(n)||r(n)?k[O(n)]||"object":typeof n},url:z}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).celia=t(); |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -27,3 +27,3 @@ * Released under the MIT License. | ||
for (var key in value) { | ||
if (handler(cb, value[key], key)) { | ||
if (handler(cb, value[key], key) === false) { | ||
break; | ||
@@ -35,3 +35,3 @@ } } | ||
_for( | ||
function (cb, val, key) { return value.hasOwnProperty(key) && cb(val, key, value) === false; }, | ||
function (cb, val, key) { return value.hasOwnProperty(key) && cb(val, key, value); }, | ||
value, iterator, context | ||
@@ -68,3 +68,3 @@ ); | ||
_for( | ||
function (cb, val, key) { return cb(val, key, value) === false; }, | ||
function (cb, val, key) { return cb(val, key, value); }, | ||
value, iterator, context | ||
@@ -78,2 +78,22 @@ ); | ||
function isUndefined (value) { | ||
return typeof value === 'undefined'; | ||
} | ||
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; | ||
var reEscapeChar = /\\(\\)?/g; | ||
function get (object, path, defaultValue) { | ||
var part; | ||
while (!isNil(object) && (part = rePropName.exec(path))) { | ||
var match = part[0]; | ||
var number = part[1]; | ||
var quote = part[2]; | ||
var subString = part[3]; | ||
var prop = quote ? subString.replace(reEscapeChar, '$1') : (number || match); | ||
object = object[prop]; | ||
} | ||
return isUndefined(object) ? defaultValue : object; | ||
} | ||
function append (arr, obj) { | ||
@@ -104,2 +124,3 @@ arr[arr.length] = obj; | ||
forOwn: forOwn$1, | ||
get: get, | ||
map: map$1 | ||
@@ -106,0 +127,0 @@ }; |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -31,3 +31,3 @@ * Released under the MIT License. | ||
for (var key in value) { | ||
if (handler(cb, value[key], key)) { | ||
if (handler(cb, value[key], key) === false) { | ||
break; | ||
@@ -39,3 +39,3 @@ } } | ||
_for( | ||
function (cb, val, key) { return value.hasOwnProperty(key) && cb(val, key, value) === false; }, | ||
function (cb, val, key) { return value.hasOwnProperty(key) && cb(val, key, value); }, | ||
value, iterator, context | ||
@@ -72,3 +72,3 @@ ); | ||
_for( | ||
function (cb, val, key) { return cb(val, key, value) === false; }, | ||
function (cb, val, key) { return cb(val, key, value); }, | ||
value, iterator, context | ||
@@ -82,2 +82,22 @@ ); | ||
function isUndefined (value) { | ||
return typeof value === 'undefined'; | ||
} | ||
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; | ||
var reEscapeChar = /\\(\\)?/g; | ||
function get (object, path, defaultValue) { | ||
var part; | ||
while (!isNil(object) && (part = rePropName.exec(path))) { | ||
var match = part[0]; | ||
var number = part[1]; | ||
var quote = part[2]; | ||
var subString = part[3]; | ||
var prop = quote ? subString.replace(reEscapeChar, '$1') : (number || match); | ||
object = object[prop]; | ||
} | ||
return isUndefined(object) ? defaultValue : object; | ||
} | ||
function append (arr, obj) { | ||
@@ -108,2 +128,3 @@ arr[arr.length] = obj; | ||
forOwn: forOwn$1, | ||
get: get, | ||
map: map$1 | ||
@@ -110,0 +131,0 @@ }; |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
* Released under the MIT License. | ||
*/ | ||
var n,t;n=this,t=function(){"use strict";function f(n){return null==n}function c(n,t){return t?n.bind(t):n}function o(n,t,e,r){var o=c(e,r);for(var u in t)if(n(o,t[u],u))break}function r(n){return!f(n)&&"object"==typeof n}function u(n,t,e){return r(n)&&function(r,n,t){o(function(n,t,e){return r.hasOwnProperty(e)&&!1===n(t,e,r)},r,n,t)}(n,t,e)}return{assign:Object.assign||function(n){if(f(n))throw new TypeError("Cannot convert undefined or null to object");var e=Object(n);return function(n,t,e,r,o){for(var u=c(r,o),f=t,i=void 0;!1!==i&&f<e;f++)i=u(n[f],f,n)}(arguments,1,arguments.length,function(n){u(n,function(n,t){e[t]=n})}),e},forIn:function(n,t,e){return r(n)&&function(r,n,t){o(function(n,t,e){return!1===n(t,e,r)},r,n,t)}(n,t,e)},forOwn:u,map:function(n,t,e){return function(n,t,e,r){var o=[],u=c(e,r);return n(t,function(n,t){f(n=u(n,t))||function(n,t){n[n.length]=t}(o,n)}),o}(u,n,t,e)}}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).celia=t(); | ||
var n,t;n=this,t=function(){"use strict";function c(n){return null==n}function a(n,t){return t?n.bind(t):n}function o(n,t,r,e){var o=a(r,e);for(var u in t)if(!1===n(o,t[u],u))break}function e(n){return!c(n)&&"object"==typeof n}function u(n,t,r){return e(n)&&function(e,n,t){o(function(n,t,r){return e.hasOwnProperty(r)&&n(t,r,e)},e,n,t)}(n,t,r)}var n=Object.assign||function(n){if(c(n))throw new TypeError("Cannot convert undefined or null to object");var r=Object(n);return function(n,t,r,e,o){for(var u=a(e,o),f=t,i=void 0;!1!==i&&f<r;f++)i=u(n[f],f,n)}(arguments,1,arguments.length,function(n){u(n,function(n,t){r[t]=n})}),r};var d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v=/\\(\\)?/g;return{assign:n,forIn:function(n,t,r){return e(n)&&function(e,n,t){o(function(n,t,r){return n(t,r,e)},e,n,t)}(n,t,r)},forOwn:u,get:function(n,t,r){for(var e;!c(n)&&(e=d.exec(t));){var o=e[0],u=e[1],f=e[2],i=e[3];n=n[f?i.replace(v,"$1"):u||o]}return function(n){return void 0===n}(n)?r:n},map:function(n,t,r){return function(n,t,r,e){var o=[],u=a(r,e);return n(t,function(n,t){c(n=u(n,t))||function(n,t){n[n.length]=t}(o,n)}),o}(u,n,t,r)}}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).celia=t(); |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -62,3 +62,3 @@ * Released under the MIT License. | ||
for (var key in value) { | ||
if (handler(cb, value[key], key)) { | ||
if (handler(cb, value[key], key) === false) { | ||
break; | ||
@@ -70,3 +70,3 @@ } } | ||
_for( | ||
function (cb, val, key) { return value.hasOwnProperty(key) && cb(val, key, value) === false; }, | ||
function (cb, val, key) { return value.hasOwnProperty(key) && cb(val, key, value); }, | ||
value, iterator, context | ||
@@ -73,0 +73,0 @@ ); |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -66,3 +66,3 @@ * Released under the MIT License. | ||
for (var key in value) { | ||
if (handler(cb, value[key], key)) { | ||
if (handler(cb, value[key], key) === false) { | ||
break; | ||
@@ -74,3 +74,3 @@ } } | ||
_for( | ||
function (cb, val, key) { return value.hasOwnProperty(key) && cb(val, key, value) === false; }, | ||
function (cb, val, key) { return value.hasOwnProperty(key) && cb(val, key, value); }, | ||
value, iterator, context | ||
@@ -77,0 +77,0 @@ ); |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
* Released under the MIT License. | ||
*/ | ||
var n,e;n=this,e=function(){"use strict";function f(n,e){return n[n.length]=e,n}function u(n){return decodeURIComponent(n.replace(/\+/g," "))}var c=/([^=?&]+)=?([^&]*)/g,a=Array.isArray;function o(n){return null==n}function i(n,e,r){return function(n){return!o(n)&&"object"==typeof n}(n)&&function(t,n,e){!function(n,e,r,t){var o=function(n,e){return e?n.bind(e):n}(r,t);for(var i in e)if(n(o,e[i],i))break}(function(n,e,r){return t.hasOwnProperty(r)&&!1===n(e,r,t)},t,n,e)}(n,e,r)}return{parse:function(n){var e={};if(function(n){return"string"==typeof n}(n))for(var r;r=c.exec(n);){var t=r[1];if(r[0]!==t){var o=r[2],i=e[t];void 0===i?e[t]=u(o):a(i)?f(i,u(o)):e[t]=[i,u(o)]}}return e},prefix:function(n,e){return n?(e||"?")+n:n},stringify:function(n,e,r){void 0===e&&(e="&"),void 0===r&&(r="=");var t=[];return i(n,function(n,e){n||!o(n)&&!isNaN(n)||(n=""),f(t,encodeURIComponent(e)+r+encodeURIComponent(n))}),t.length?t.join(e):""}}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(n=n||self).celia=e(); | ||
var n,e;n=this,e=function(){"use strict";function f(n,e){return n[n.length]=e,n}function u(n){return decodeURIComponent(n.replace(/\+/g," "))}var c=/([^=?&]+)=?([^&]*)/g,a=Array.isArray;function o(n){return null==n}function i(n,e,r){return function(n){return!o(n)&&"object"==typeof n}(n)&&function(t,n,e){!function(n,e,r,t){var o=function(n,e){return e?n.bind(e):n}(r,t);for(var i in e)if(!1===n(o,e[i],i))break}(function(n,e,r){return t.hasOwnProperty(r)&&n(e,r,t)},t,n,e)}(n,e,r)}return{parse:function(n){var e={};if(function(n){return"string"==typeof n}(n))for(var r;r=c.exec(n);){var t=r[1];if(r[0]!==t){var o=r[2],i=e[t];void 0===i?e[t]=u(o):a(i)?f(i,u(o)):e[t]=[i,u(o)]}}return e},prefix:function(n,e){return n?(e||"?")+n:n},stringify:function(n,e,r){void 0===e&&(e="&"),void 0===r&&(r="=");var t=[];return i(n,function(n,e){n||!o(n)&&!isNaN(n)||(n=""),f(t,encodeURIComponent(e)+r+encodeURIComponent(n))}),t.length?t.join(e):""}}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(n=n||self).celia=e(); |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.1.2 | ||
* celia.js v5.1.3 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
import assign from './object/assign.js'; | ||
import forIn from './object/forIn.js'; | ||
import forOwn from './object/forOwn.js'; | ||
import get from './object/get.js'; | ||
import map from './object/map.js'; | ||
@@ -9,3 +10,4 @@ export default { | ||
forOwn, | ||
get, | ||
map | ||
}; |
{ | ||
"name": "celia", | ||
"version": "5.1.2", | ||
"version": "5.1.3", | ||
"description": "A modern JavaScript utility library delivering modularity, performance, & extras.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/celia.c.js", |
@@ -72,2 +72,3 @@ # celia | ||
- forOwn | ||
- get | ||
- getUid | ||
@@ -96,2 +97,3 @@ - isArrayLike | ||
- object/forOwn | ||
- object/get | ||
- object/map | ||
@@ -98,0 +100,0 @@ - qs/parse |
@@ -7,3 +7,3 @@ import toString from './_internal/_toString'; | ||
const RAW_DATA_TYPES = {}; | ||
'Boolean,Number,String,Function,Array,Date,RegExp,Object,Error,Symbol'.split(',').forEach((name) => { | ||
'Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol'.split(',').forEach((name) => { | ||
RAW_DATA_TYPES[`[object ${name}]`] = name.toLowerCase(); | ||
@@ -10,0 +10,0 @@ }); |
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
67693
80
2039
105