diff --git a/dist/super.es.js b/dist/super.es.js index daa3a8c..c239d3a 100644 --- a/dist/super.es.js +++ b/dist/super.es.js @@ -18,6 +18,8 @@ var PrimitiveType = { var InstanceType = { OBJECT: Object, ARRAY: Array, + SET: Set, + MAP: Map, REGEXP: RegExp, DATE: Date }; @@ -3085,25 +3087,45 @@ var _Object = function (_extendableBuiltin2) { return copy; } + if (item instanceof InstanceType.SET) { + var _copy = new Set(); + + item.forEach(function (v) { + return _copy.add(_clone(v)); + }); + + return _copy; + } + + if (item instanceof InstanceType.MAP) { + var _copy2 = new Map(); + + item.forEach(function (v, k) { + return _copy2.set(k, _clone(v)); + }); + + return _copy2; + } + if (item instanceof InstanceType.OBJECT) { - var _copy = {}; + var _copy3 = {}; // $FlowFixMe Object.getOwnPropertySymbols(item).forEach(function (s) { - return _copy[s] = _clone(item[s]); + return _copy3[s] = _clone(item[s]); }); if (includeNonEnumerable) { Object.getOwnPropertyNames(item).forEach(function (k) { - return _copy[k] = _clone(item[k]); + return _copy3[k] = _clone(item[k]); }); } else { Object.keys(item).forEach(function (k) { - return _copy[k] = _clone(item[k]); + return _copy3[k] = _clone(item[k]); }); } - return _copy; + return _copy3; } throw new Error("Unable to copy object: " + item); diff --git a/dist/super.js b/dist/super.js index 79e6ad1..e23b65f 100644 --- a/dist/super.js +++ b/dist/super.js @@ -24,6 +24,8 @@ var InstanceType = { OBJECT: Object, ARRAY: Array, + SET: Set, + MAP: Map, REGEXP: RegExp, DATE: Date }; @@ -3091,25 +3093,45 @@ return copy; } + if (item instanceof InstanceType.SET) { + var _copy = new Set(); + + item.forEach(function (v) { + return _copy.add(_clone(v)); + }); + + return _copy; + } + + if (item instanceof InstanceType.MAP) { + var _copy2 = new Map(); + + item.forEach(function (v, k) { + return _copy2.set(k, _clone(v)); + }); + + return _copy2; + } + if (item instanceof InstanceType.OBJECT) { - var _copy = {}; + var _copy3 = {}; // $FlowFixMe Object.getOwnPropertySymbols(item).forEach(function (s) { - return _copy[s] = _clone(item[s]); + return _copy3[s] = _clone(item[s]); }); if (includeNonEnumerable) { Object.getOwnPropertyNames(item).forEach(function (k) { - return _copy[k] = _clone(item[k]); + return _copy3[k] = _clone(item[k]); }); } else { Object.keys(item).forEach(function (k) { - return _copy[k] = _clone(item[k]); + return _copy3[k] = _clone(item[k]); }); } - return _copy; + return _copy3; } throw new Error("Unable to copy object: " + item); diff --git a/dist/super.min.js b/dist/super.min.js index cd1d776..a16db0a 100644 --- a/dist/super.min.js +++ b/dist/super.min.js @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.Super={})}(this,function(t){"use strict";function e(t){try{return j(t[Symbol.iterator])===k.FUNCTION}catch(t){return!1}}function r(t,e){return t-e}function n(t){return function(e,r){return 0===t(e,r)}}function i(t){return function(e,r){return t(e,r)<0}}function o(t){return function(e,r){return t(e,r)>0}}function u(t,e,r){if(e!==r){var n=[t[r],t[e]];t[e]=n[0],t[r]=n[1]}}function a(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if(!(this instanceof Array||t instanceof Array))throw Error("Array type is required");var n=this instanceof Array?this:t.slice(0),o=i(e);return function(t){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:r;if(!(this instanceof Array||t instanceof Array))throw Error("Array type is required");var n=this instanceof Array?this:t.slice(0),o=i(e);return function(t){for(var e=0;e=0&&o(t[r+1],t[r]);r--)u(t,r,r+1);return t}(n)}function c(t){function e(t){if(t.length<=1)return t;var r=Math.trunc(t.length/2),n=t.slice(0,r),i=t.slice(r);return e(n),e(i),h(t,n,i,u)}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if(!(this instanceof Array||t instanceof Array))throw Error("Array type is required");var o=this instanceof Array?this:t.slice(0),u=i(n);return e(o)}function h(t,e,r,n){for(var i=0,o=0,u=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length-1;if(r1&&void 0!==arguments[1]?arguments[1]:r;if(!(this instanceof Array||t instanceof Array))throw Error("Array type is required");var o=this instanceof Array?this:t.slice(0),u=i(n),a=P.HOARE,l=q.RANDOM;return e(o)}function v(t,e,r,n,i){switch(n){case q.LOW:return function(t,e,r){for(var n=e,o=e+1,a=e+1;a<=r;a++)i(t[a],t[n])&&(u(t,o,a),o++);return u(t,o-1,e),o-1}(t,e,r);case q.HIGH:default:return function(t,e,r){for(var n=r,o=e-1,a=e;a=f)return f;u(t,l,f)}}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if(!(this instanceof Array||t instanceof Array))throw Error("Array type is required");var n=this instanceof Array?this:t.slice(0),o=i(e);return function(t){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:r;if(!(this instanceof Array||t instanceof Array))throw Error("Array type is required");var o=this instanceof Array?this:t.slice(0),u=i(n),a=P.HOARE,l=q.RANDOM;return e(o)}function v(t,e,r,n,i){switch(n){case q.LOW:return function(t,e,r){for(var n=e,o=e+1,a=e+1;a<=r;a++)i(t[a],t[n])&&(u(t,o,a),o++);return u(t,o-1,e),o-1}(t,e,r);case q.HIGH:default:return function(t,e,r){for(var n=r,o=e-1,a=e;a=f)return f;u(t,l,f)}}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if(!(this instanceof Array||t instanceof Array))throw Error("Array type is required");var n=this instanceof Array?this:t.slice(0),o=i(e);return function(t){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:[];S(this,e);var r=x(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.push.apply(r,T(t)),r}return A(e,t),M(e,[{key:"flatMap",value:function(t){return this.map(t).flatten()}},{key:"flatten",value:function(){function t(e,r){return e<=0?r:r.reduce(function(r,n){return r.concat(Array.isArray(n)?t(e-1,n):n)},[])}return t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,this)}},{ key:"bubbleSort",value:function(t){return l.call(this,null,t)}},{key:"insertionSort",value:function(t){return f.call(this,null,t)}},{key:"mergeSort",value:function(t){return c.call(this,null,t)}},{key:"quickSort",value:function(t){return s.call(this,null,t)}},{key:"selectionSort",value:function(t){return p.call(this,null,t)}}]),e}(function(t){function e(){var e=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(e,Object.getPrototypeOf(this)),e}return e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t,e}(Array)),L=function(){function t(e){S(this,t),this._value=e,this._left=null,this._right=null}return M(t,[{key:"value",get:function(){return this._value},set:function(t){this._value=t}},{key:"left",get:function(){return this._left},set:function(t){this._left=t}},{key:"right",get:function(){return this._right},set:function(t){this._right=t}}]),t}(),C=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];S(this,t),this._queue=[].concat(T(e))}return M(t,[{key:"isEmpty",value:function(){return 0===this._queue.length}},{key:"clear",value:function(){this._queue.length=0}},{key:"enqueue",value:function(t){return this._queue.push(t)}},{key:"dequeue",value:function(){return this._queue.shift()}},{key:"toArray",value:function(){return this._queue.slice(0)}},{key:"size",get:function(){return this._queue.length}},{key:"front",get:function(){return this._queue[0]}},{key:"rear",get:function(){return this._queue[this._queue.length-1]}}]),t}(),R=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=arguments[1];S(this,t),this._root=null,this._compareEqual=n(u||r),this._compareLessThan=i(u||r),this._compareGreaterThan=o(u||r);var a=!0,l=!1,f=void 0;try{for(var c,h=e[Symbol.iterator]();!(a=(c=h.next()).done);a=!0){this.insert(c.value)}}catch(t){l=!0,f=t}finally{try{!a&&h.return&&h.return()}finally{if(l)throw f}}}return M(t,[{ key:"getHeight",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root;return function t(e){return e?Math.max(t(e.left),t(e.right))+1:0}(t)}},{key:"findMin",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root;return t.left?this.findMin(t.left):t}},{key:"findMax",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root;return t.right?this.findMax(t.right):t}},{key:"insert",value:function(t){var e=this,r=new L(t);this._root=function t(n){return n?(e._compareLessThan(r.value,n.value)?n.left=t(n.left):n.right=t(n.right),n):r}(this.root)}},{key:"search",value:function(t){var e=this;if(!t)return null;return function r(n){return n?e._compareEqual(t,n.value)?n:e._compareLessThan(t,n.value)?r(n.left):e._compareGreaterThan(t,n.value)?r(n.right):void 0:null}(this.root)}},{key:"remove",value:function(t){var e=this;this._root=function t(r,n){if(!r)return null;if(e._compareEqual(r.value,n)){if(r.left||r.right){if(r.left){if(r.right){var i=e.findMin(r.right);return r.value=i.value,r.right=t(r.right,i.value),r}return r.left}return r.right}return null}return e._compareLessThan(n,r.value)?(r.left=t(r.left,n),r):e._compareGreaterThan(n,r.value)?(r.right=t(r.right,n),r):void 0}(this.root,t)}},{key:"preOrder",value:function(){function t(e){e&&(r=[].concat(T(r),[e]),t(e.left),t(e.right))}var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root,r=[];return t(e),r}},{key:"inOrder",value:function(){function t(e){e&&(t(e.left),r=[].concat(T(r),[e]),t(e.right))}var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root,r=[];return t(e),r}},{key:"postOrder",value:function(){function t(e){e&&(t(e.left),t(e.right),r=[].concat(T(r),[e]))}var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root,r=[];return t(e),r}},{key:"levelOrder",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root,e=[],r=new C;for(r.enqueue(t);!r.isEmpty();){var n=r.dequeue();e.push(n), @@ -14,8 +14,8 @@ if(r.left&&e._getBalance(r.left)>=0)return e._rotateRight(r);if(r.left&&e._getBa set:function(t){this._value=t}},{key:"next",get:function(){return this._next},set:function(t){this._next=t}},{key:"prev",get:function(){return this._prev},set:function(t){this._prev=t}}]),t}(),z=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];S(this,t);var r=new I(0),n=null,i=r,o=0,u=!0,a=!1,l=void 0;try{for(var f,c=e[Symbol.iterator]();!(u=(f=c.next()).done);u=!0){i.next=new I(f.value),i=i.next,i.prev=n,n=i,o++}}catch(t){a=!0,l=t}finally{try{!u&&c.return&&c.return()}finally{if(a)throw l}}this._size=o,this._head=r.next,this._tail=i}return M(t,[{key:"insert",value:function(t,e){if(t<0)return this.insert(Math.max(0,this.size+1-Math.abs(t)),e);for(var r=null,n=this.head,i=0;i1&&void 0!==arguments[1]?arguments[1]:"",n=!0,i=!1,o=void 0;try{ for(var u,a=G[Symbol.iterator]();!(n=(u=a.next()).done);n=!0){var l=u.value,f=E(l,2),c=f[0],h=f[1];if(e>=c)return t(e-c,r+h)}}catch(t){i=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return r}return t(this)}}],[{key:"fromRomanNumeral",value:function(t){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!0,i=!1,o=void 0;try{for(var u,a=W[Symbol.iterator]();!(n=(u=a.next()).done);n=!0){var l=u.value,f=E(l,2),c=f[0],h=f[1];if(t.slice(0,c.length)===c)return e(t.slice(c.length),r+h)}}catch(t){i=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return r}return e(t)}},{key:"isNumber",value:function(t){return!!t.trim()&&!Number.isNaN(+t)}}]),e}(function(t){function e(){var e=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(e,Object.getPrototypeOf(this)),e}return e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t,e}(Number)),F=function(t){function e(t){return S(this,e),x(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return A(e,t),M(e,[{key:"hasNested",value:function(t){var e=this;t=t.replace(/\[(\w+)\]/,".$1").replace(/^\./,"");var r=t.split("."),n=!0,i=!1,o=void 0;try{for(var u,a=r[Symbol.iterator]();!(n=(u=a.next()).done);n=!0){var l=u.value;if(!((void 0===e?"undefined":j(e))===k.OBJECT&&l in e))return!1;e=e[l]}}catch(t){i=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return!0}},{key:"getNested",value:function(t){var e=this;t=t.replace(/\[(\w+)\]/,".$1").replace(/^\./,"");var r=t.split("."),n=!0,i=!1,o=void 0;try{for(var u,a=r[Symbol.iterator]();!(n=(u=a.next()).done);n=!0){var l=u.value;if(!((void 0===e?"undefined":j(e))===k.OBJECT&&l in e))return;e=e[l]}}catch(t){i=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return e}},{key:"clone",value:function(){function t(e){if(null===e||(void 0===e?"undefined":j(e))!==k.OBJECT)return e -;if(e instanceof w.DATE)return new Date(e.valueOf());if(e instanceof w.ARRAY){var r=[];return e.forEach(function(n,i){return r[i]=t(e[i])}),r}if(e instanceof w.OBJECT){var i={};return Object.getOwnPropertySymbols(e).forEach(function(r){return i[r]=t(e[r])}),n?Object.getOwnPropertyNames(e).forEach(function(r){return i[r]=t(e[r])}):Object.keys(e).forEach(function(r){return i[r]=t(e[r])}),i}throw Error("Unable to copy object: "+e)}var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.includeNonEnumerable,n=void 0!==r&&r;return t(this)}}]),e}(function(t){function e(){var e=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(e,Object.getPrototypeOf(this)),e}return e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t,e}(Object)),J=function(){function t(e,r){S(this,t),this._value=e,this._priority=r}return M(t,[{key:"value",get:function(){return this._value}},{key:"priority",get:function(){return this._priority}}]),t}(),V="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Q="object"==typeof V&&V&&V.Object===Object&&V,Y=Q,$="object"==typeof self&&self&&self.Object===Object&&self,K=Y||$||Function("return this")(),Z=K,tt=Z.Symbol,et=tt,rt=Object.prototype,nt=rt.hasOwnProperty,it=rt.toString,ot=et?et.toStringTag:void 0,ut=d,at=Object.prototype,lt=at.toString,ft=g,ct="[object Null]",ht="[object Undefined]",st=et?et.toStringTag:void 0,vt=_,yt=b,pt=yt(Object.getPrototypeOf,Object),dt=pt,gt=m,_t="[object Object]",bt=Function.prototype,mt=Object.prototype,Ot=bt.toString,kt=mt.hasOwnProperty,wt=Ot.call(Object),jt=O,St=function(){function t(){var r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map,i=arguments[1];if(S(this,t),this._queue=[],this._comparator=i?t._wrapComparator(i):t._defaultComparator,!(n instanceof Map)){if(!e(n))throw Error("Unable to construct from non-iterable") -;if(Array.isArray(n[0]))n=new Map(n);else{if(!jt(n[0]))return n.forEach(function(t){return r.insert(t)});n=new Map(n.map(function(t){return[t.priority,t.value]}))}}var o=!0,u=!1,a=void 0;try{for(var l,f=n.entries()[Symbol.iterator]();!(o=(l=f.next()).done);o=!0){var c=l.value,h=E(c,2);this.insert(h[1],h[0])}}catch(t){u=!0,a=t}finally{try{!o&&f.return&&f.return()}finally{if(u)throw a}}}return M(t,[{key:"isEmpty",value:function(){return 0===this._queue.length}},{key:"clear",value:function(){this._queue.length=0}},{key:"insert",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if((void 0===e?"undefined":j(e))!==k.NUMBER)throw Error("Unable to insert non-number priority: "+e);return this._queue.push(new J(t,e)),this._queue.sort(this._comparator),this.size}},{key:"deleteMax",value:function(){return this._queue.shift()}},{key:"deleteHigh",value:function(){return this.deleteMax()}},{key:"deleteMin",value:function(){return this._queue.pop()}},{key:"deleteLow",value:function(){return this.deleteMin()}},{key:"toArray",value:function(){return this._queue.slice(0)}},{key:"size",get:function(){return this._queue.length}},{key:"max",get:function(){return this._queue[0]}},{key:"high",get:function(){return this.max}},{key:"min",get:function(){return this._queue[this._queue.length-1]}},{key:"low",get:function(){return this.min}}],[{key:"_wrapComparator",value:function(t){return function(e,r){return t(e.value,r.value)}}},{key:"_defaultComparator",value:function(t,e){return t.priority0&&void 0!==arguments[0]?arguments[0]:xt.ROOT;S(this,t),this._char=e,this._isCompleteWord=!1,this._children=new Map}return M(t,[{key:"has",value:function(t){return this._children.has(t)}},{key:"get",value:function(t){return this._children.get(t)}},{key:"set",value:function(t,e){this._children.set(t,e)}},{key:"delete",value:function(t){this._children.delete(t)}},{key:"count",get:function(){return this._children.size}},{key:"char",get:function(){return this._char}},{key:"isCompleteWord",get:function(){return this._isCompleteWord}},{key:"isLeafNode",get:function(){return 0===this.count}}]),t}(),Tt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];S(this,t),this._root=new Et;var r=!0,n=!1,i=void 0;try{for(var o,u=e[Symbol.iterator]();!(r=(o=u.next()).done);r=!0){this.insert(o.value)}}catch(t){n=!0,i=t}finally{try{ -!r&&u.return&&u.return()}finally{if(n)throw i}}}return M(t,[{key:"insert",value:function(t){if((void 0===t?"undefined":j(t))!==k.STRING)throw Error("Unable to insert non-string value: "+t);var e=this.root,r=!0,n=!1,i=void 0;try{for(var o,u=t[Symbol.iterator]();!(r=(o=u.next()).done);r=!0){var a=o.value;if(e.has(a))e=e.get(a);else{var l=new Et(a);e.set(a,l),e=l}}}catch(t){n=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(n)throw i}}e._isCompleteWord=!0}},{key:"remove",value:function(t){function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!r)return!1;if(n===t.length)return r._isCompleteWord=!1,r.isLeafNode;var i=t[n];return e(r.get(i),n+1)?(r.delete(i),r.isLeafNode):void 0}if((void 0===t?"undefined":j(t))!==k.STRING)throw Error("Unable to remove non-string value: "+t);return e(this.root)}},{key:"search",value:function(t){for(var e=this.root,r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=e.includeNonEnumerable,n=void 0!==r&&r;return t(this)}}]),e}(function(t){function e(){var e=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(e,Object.getPrototypeOf(this)),e}return e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t,e}(Object)),J=function(){function t(e,r){S(this,t),this._value=e,this._priority=r}return M(t,[{key:"value",get:function(){return this._value}},{key:"priority",get:function(){return this._priority}}]),t}(),V="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Q="object"==typeof V&&V&&V.Object===Object&&V,Y=Q,$="object"==typeof self&&self&&self.Object===Object&&self,K=Y||$||Function("return this")(),Z=K,tt=Z.Symbol,et=tt,rt=Object.prototype,nt=rt.hasOwnProperty,it=rt.toString,ot=et?et.toStringTag:void 0,ut=d,at=Object.prototype,lt=at.toString,ft=g,ct="[object Null]",ht="[object Undefined]",st=et?et.toStringTag:void 0,vt=_,yt=b,pt=yt(Object.getPrototypeOf,Object),dt=pt,gt=m,_t="[object Object]",bt=Function.prototype,mt=Object.prototype,Ot=bt.toString,kt=mt.hasOwnProperty,wt=Ot.call(Object),jt=O,St=function(){function t(){var r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map,i=arguments[1];if(S(this,t), +this._queue=[],this._comparator=i?t._wrapComparator(i):t._defaultComparator,!(n instanceof Map)){if(!e(n))throw Error("Unable to construct from non-iterable");if(Array.isArray(n[0]))n=new Map(n);else{if(!jt(n[0]))return n.forEach(function(t){return r.insert(t)});n=new Map(n.map(function(t){return[t.priority,t.value]}))}}var o=!0,u=!1,a=void 0;try{for(var l,f=n.entries()[Symbol.iterator]();!(o=(l=f.next()).done);o=!0){var c=l.value,h=E(c,2);this.insert(h[1],h[0])}}catch(t){u=!0,a=t}finally{try{!o&&f.return&&f.return()}finally{if(u)throw a}}}return M(t,[{key:"isEmpty",value:function(){return 0===this._queue.length}},{key:"clear",value:function(){this._queue.length=0}},{key:"insert",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if((void 0===e?"undefined":j(e))!==k.NUMBER)throw Error("Unable to insert non-number priority: "+e);return this._queue.push(new J(t,e)),this._queue.sort(this._comparator),this.size}},{key:"deleteMax",value:function(){return this._queue.shift()}},{key:"deleteHigh",value:function(){return this.deleteMax()}},{key:"deleteMin",value:function(){return this._queue.pop()}},{key:"deleteLow",value:function(){return this.deleteMin()}},{key:"toArray",value:function(){return this._queue.slice(0)}},{key:"size",get:function(){return this._queue.length}},{key:"max",get:function(){return this._queue[0]}},{key:"high",get:function(){return this.max}},{key:"min",get:function(){return this._queue[this._queue.length-1]}},{key:"low",get:function(){return this.min}}],[{key:"_wrapComparator",value:function(t){return function(e,r){return t(e.value,r.value)}}},{key:"_defaultComparator",value:function(t,e){return t.priority0&&void 0!==arguments[0]?arguments[0]:xt.ROOT;S(this,t),this._char=e,this._isCompleteWord=!1,this._children=new Map}return M(t,[{key:"has",value:function(t){return this._children.has(t)}},{key:"get",value:function(t){return this._children.get(t)}},{key:"set",value:function(t,e){this._children.set(t,e)}},{key:"delete",value:function(t){this._children.delete(t)}},{key:"count",get:function(){return this._children.size}},{key:"char",get:function(){return this._char}},{key:"isCompleteWord",get:function(){return this._isCompleteWord}},{key:"isLeafNode",get:function(){return 0===this.count}}]),t}(),Tt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];S(this,t),this._root=new Et;var r=!0,n=!1,i=void 0;try{ +for(var o,u=e[Symbol.iterator]();!(r=(o=u.next()).done);r=!0){this.insert(o.value)}}catch(t){n=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(n)throw i}}}return M(t,[{key:"insert",value:function(t){if((void 0===t?"undefined":j(t))!==k.STRING)throw Error("Unable to insert non-string value: "+t);var e=this.root,r=!0,n=!1,i=void 0;try{for(var o,u=t[Symbol.iterator]();!(r=(o=u.next()).done);r=!0){var a=o.value;if(e.has(a))e=e.get(a);else{var l=new Et(a);e.set(a,l),e=l}}}catch(t){n=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(n)throw i}}e._isCompleteWord=!0}},{key:"remove",value:function(t){function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!r)return!1;if(n===t.length)return r._isCompleteWord=!1,r.isLeafNode;var i=t[n];return e(r.get(i),n+1)?(r.delete(i),r.isLeafNode):void 0}if((void 0===t?"undefined":j(t))!==k.STRING)throw Error("Unable to remove non-string value: "+t);return e(this.root)}},{key:"search",value:function(t){for(var e=this.root,r=0;r a+b], [Symbol(\"key2\")]: {s: \"s\"} });\n * const clone = obj.clone();\n *\n * console.log(clone);\n * // { key1: [\"1\", 1, true, (a, b) => a+b], Symbol(\"key2\"): {s: \"s\"} }\n *\n ", + "start": 1437, + "end": 1865, + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 89, + "column": 5 + } + } + }, + { + "type": "CommentLine", + "value": " $FlowFixMe", + "start": 1868, + "end": 1881, + "loc": { + "start": { + "line": 90, + "column": 2 + }, + "end": { + "line": 90, + "column": 15 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @private\n *\n * @desc Deep clone helper\n *\n * @param {Item} item\n * @returns {any} cloned item\n ", + "start": 1963, + "end": 2095, + "loc": { + "start": { + "line": 94, + "column": 4 + }, + "end": { + "line": 101, + "column": 7 + } + } + }, + { + "type": "CommentLine", + "value": " $FlowFixMe", + "start": 2881, + "end": 2894, + "loc": { + "start": { + "line": 138, + "column": 8 + }, + "end": { + "line": 138, + "column": 21 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\n * \n * @module super/object\n ", + "start": 0, + "end": 35, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 37, + "end": 43, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 44, + "end": 45, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "InstanceType", + "start": 46, + "end": 58, + "loc": { + "start": { + "line": 6, + "column": 9 + }, + "end": { + "line": 6, + "column": 21 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 58, + "end": 59, + "loc": { + "start": { + "line": 6, + "column": 21 + }, + "end": { + "line": 6, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "PrimitiveType", + "start": 60, + "end": 73, + "loc": { + "start": { + "line": 6, + "column": 23 + }, + "end": { + "line": 6, + "column": 36 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 74, + "end": 75, + "loc": { + "start": { + "line": 6, + "column": 37 + }, + "end": { + "line": 6, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 76, + "end": 80, + "loc": { + "start": { + "line": 6, + "column": 39 + }, + "end": { + "line": 6, + "column": 43 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../../shared/src/constants", + "start": 81, + "end": 112, + "loc": { + "start": { + "line": 6, + "column": 44 + }, + "end": { + "line": 6, + "column": 75 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 112, + "end": 113, + "loc": { + "start": { + "line": 6, + "column": 75 + }, + "end": { + "line": 6, + "column": 76 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @typedef {object} Config\n * @property {boolean} [includeNonEnumerable=false]\n ", + "start": 115, + "end": 202, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n *\n * Object with superpowers! 💪\n *\n * @public\n *\n ", + "start": 204, + "end": 262, + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 263, + "end": 268, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 20, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "_Object", + "start": 269, + "end": 276, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 13 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 277, + "end": 284, + "loc": { + "start": { + "line": 20, + "column": 14 + }, + "end": { + "line": 20, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Object", + "start": 285, + "end": 291, + "loc": { + "start": { + "line": 20, + "column": 22 + }, + "end": { + "line": 20, + "column": 28 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 292, + "end": 293, + "loc": { + "start": { + "line": 20, + "column": 29 + }, + "end": { + "line": 20, + "column": 30 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @public\n *\n * @desc Construct an Object\n *\n * @param {Object} object\n ", + "start": 296, + "end": 387, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 390, + "end": 401, + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 28, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 401, + "end": 402, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "object", + "start": 402, + "end": 408, + "loc": { + "start": { + "line": 28, + "column": 14 + }, + "end": { + "line": 28, + "column": 20 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 408, + "end": 409, + "loc": { + "start": { + "line": 28, + "column": 20 + }, + "end": { + "line": 28, + "column": 21 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 410, + "end": 411, + "loc": { + "start": { + "line": 28, + "column": 22 + }, + "end": { + "line": 28, + "column": 23 + } + } + }, + { + "type": "CommentLine", + "value": " $FlowFixMe", + "start": 416, + "end": 429, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 17 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 434, + "end": 439, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 9 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 439, + "end": 440, + "loc": { + "start": { + "line": 30, + "column": 9 + }, + "end": { + "line": 30, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "object", + "start": 440, + "end": 446, + "loc": { + "start": { + "line": 30, + "column": 10 + }, + "end": { + "line": 30, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 446, + "end": 447, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 17 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 447, + "end": 448, + "loc": { + "start": { + "line": 30, + "column": 17 + }, + "end": { + "line": 30, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 451, + "end": 452, + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 31, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @public\n *\n * @desc Check for nested value from string key\n *\n * @param {string} path\n * @return {boolean} property value exists\n ", + "start": 456, + "end": 609, + "loc": { + "start": { + "line": 33, + "column": 2 + }, + "end": { + "line": 40, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hasNested", + "start": 612, + "end": 621, + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 41, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 621, + "end": 622, + "loc": { + "start": { + "line": 41, + "column": 11 + }, + "end": { + "line": 41, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "path", + "start": 622, + "end": 626, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 626, + "end": 627, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 628, + "end": 629, + "loc": { + "start": { + "line": 41, + "column": 18 + }, + "end": { + "line": 41, + "column": 19 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 634, + "end": 637, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 42, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "item", + "start": 638, + "end": 642, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 643, + "end": 644, + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 14 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 645, + "end": 649, + "loc": { + "start": { + "line": 42, + "column": 15 + }, + "end": { + "line": 42, + "column": 19 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 649, + "end": 650, + "loc": { + "start": { + "line": 42, + "column": 19 + }, + "end": { + "line": 42, + "column": 20 + } + } + }, + { + "type": "CommentLine", + "value": " TODO: throw error on invalid path", + "start": 655, + "end": 691, + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "path", + "start": 696, + "end": 700, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 8 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 701, + "end": 702, + "loc": { + "start": { + "line": 44, + "column": 9 + }, + "end": { + "line": 44, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "path", + "start": 703, + "end": 707, + "loc": { + "start": { + "line": 44, + "column": 11 + }, + "end": { + "line": 44, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 707, + "end": 708, + "loc": { + "start": { + "line": 44, + "column": 15 + }, + "end": { + "line": 44, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "replace", + "start": 708, + "end": 715, + "loc": { + "start": { + "line": 44, + "column": 16 + }, + "end": { + "line": 44, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 715, + "end": 716, + "loc": { + "start": { + "line": 44, + "column": 23 + }, + "end": { + "line": 44, + "column": 24 + } + } + }, + { + "type": { + "label": "regexp", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": { + "pattern": "\\[(\\w+)\\]", + "flags": "" + }, + "start": 716, + "end": 727, + "loc": { + "start": { + "line": 44, + "column": 24 + }, + "end": { + "line": 44, + "column": 35 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 727, + "end": 728, + "loc": { + "start": { + "line": 44, + "column": 35 + }, + "end": { + "line": 44, + "column": 36 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": ".$1", + "start": 729, + "end": 734, + "loc": { + "start": { + "line": 44, + "column": 37 + }, + "end": { + "line": 44, + "column": 42 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 734, + "end": 735, + "loc": { + "start": { + "line": 44, + "column": 42 + }, + "end": { + "line": 44, + "column": 43 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 735, + "end": 736, + "loc": { + "start": { + "line": 44, + "column": 43 + }, + "end": { + "line": 44, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "replace", + "start": 736, + "end": 743, + "loc": { + "start": { + "line": 44, + "column": 44 + }, + "end": { + "line": 44, + "column": 51 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 743, + "end": 744, + "loc": { + "start": { + "line": 44, + "column": 51 + }, + "end": { + "line": 44, + "column": 52 + } + } + }, + { + "type": { + "label": "regexp", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": { + "pattern": "^\\.", + "flags": "" + }, + "start": 744, + "end": 749, + "loc": { + "start": { + "line": 44, + "column": 52 + }, + "end": { + "line": 44, + "column": 57 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 749, + "end": 750, + "loc": { + "start": { + "line": 44, + "column": 57 + }, + "end": { + "line": 44, + "column": 58 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 751, + "end": 753, + "loc": { + "start": { + "line": 44, + "column": 59 + }, + "end": { + "line": 44, + "column": 61 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null }, - { - "type": "ExportNamedDeclaration", - "start": 3003, - "end": 3032, - "loc": { - "start": { - "line": 141, - "column": 0 - }, - "end": { - "line": 141, - "column": 29 - } + "start": 753, + "end": 754, + "loc": { + "start": { + "line": 44, + "column": 61 }, - "declaration": null, - "specifiers": [ - { - "type": "ExportSpecifier", - "start": 3012, - "end": 3029, - "loc": { - "start": { - "line": 141, - "column": 9 - }, - "end": { - "line": 141, - "column": 26 - } - }, - "local": { - "type": "Identifier", - "start": 3012, - "end": 3019, - "loc": { - "start": { - "line": 141, - "column": 9 - }, - "end": { - "line": 141, - "column": 16 - }, - "identifierName": "_Object" - }, - "name": "_Object" - }, - "exported": { - "type": "Identifier", - "start": 3023, - "end": 3029, - "loc": { - "start": { - "line": 141, - "column": 20 - }, - "end": { - "line": 141, - "column": 26 - }, - "identifierName": "Object" - }, - "name": "Object" - } - } - ], - "source": null + "end": { + "line": 44, + "column": 62 + } } - ], - "directives": [] - }, - "comments": [ + }, { - "type": "CommentBlock", - "value": "*\n * \n * @module super/object\n ", - "start": 0, - "end": 35, + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 754, + "end": 755, + "loc": { + "start": { + "line": 44, + "column": 62 + }, + "end": { + "line": 44, + "column": 63 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 761, + "end": 766, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keys", + "start": 767, + "end": 771, + "loc": { + "start": { + "line": 46, + "column": 10 + }, + "end": { + "line": 46, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 772, + "end": 773, + "loc": { + "start": { + "line": 46, + "column": 15 + }, + "end": { + "line": 46, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "path", + "start": 774, + "end": 778, + "loc": { + "start": { + "line": 46, + "column": 17 + }, + "end": { + "line": 46, + "column": 21 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 778, + "end": 779, "loc": { "start": { - "line": 1, - "column": 0 + "line": 46, + "column": 21 }, "end": { - "line": 4, - "column": 3 + "line": 46, + "column": 22 } } }, { - "type": "CommentBlock", - "value": "*\n * @typedef {object} Config\n * @property {boolean} [includeNonEnumerable=false]\n ", - "start": 115, - "end": 202, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "split", + "start": 779, + "end": 784, "loc": { "start": { - "line": 8, - "column": 0 + "line": 46, + "column": 22 }, "end": { - "line": 11, - "column": 3 + "line": 46, + "column": 27 } } }, { - "type": "CommentBlock", - "value": "*\n *\n * Object with superpowers! 💪\n *\n * @public\n *\n ", - "start": 204, - "end": 262, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 784, + "end": 785, "loc": { "start": { - "line": 13, - "column": 0 + "line": 46, + "column": 27 }, "end": { - "line": 19, - "column": 3 + "line": 46, + "column": 28 } } }, { - "type": "CommentBlock", - "value": "*\n * @public\n *\n * @desc Construct an Object\n *\n * @param {Object} object\n ", - "start": 296, - "end": 387, + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": ".", + "start": 785, + "end": 788, "loc": { "start": { - "line": 21, - "column": 2 + "line": 46, + "column": 28 }, "end": { - "line": 27, - "column": 5 + "line": 46, + "column": 31 } } }, { - "type": "CommentLine", - "value": " $FlowFixMe", - "start": 416, - "end": 429, + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 788, + "end": 789, "loc": { "start": { - "line": 29, - "column": 4 + "line": 46, + "column": 31 }, "end": { - "line": 29, - "column": 17 + "line": 46, + "column": 32 } } }, { - "type": "CommentBlock", - "value": "*\n * @public\n *\n * @desc Check for nested value from string key\n *\n * @param {string} path\n * @return {boolean} property value exists\n ", - "start": 456, - "end": 609, + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 789, + "end": 790, "loc": { "start": { - "line": 33, - "column": 2 + "line": 46, + "column": 32 }, "end": { - "line": 40, - "column": 5 + "line": 46, + "column": 33 } } }, { - "type": "CommentLine", - "value": " TODO: throw error on invalid path", - "start": 655, - "end": 691, + "type": { + "label": "for", + "keyword": "for", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": true, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "for", + "start": 795, + "end": 798, "loc": { "start": { - "line": 43, + "line": 47, "column": 4 }, "end": { - "line": 43, - "column": 40 + "line": 47, + "column": 7 } } }, { - "type": "CommentBlock", - "value": "*\n * @public\n *\n * @desc Get nested JavaScript object value from string key\n *\n * @param {string} path\n * @return {Item} property value\n ", - "start": 948, - "end": 1104, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 799, + "end": 800, "loc": { "start": { - "line": 53, - "column": 2 + "line": 47, + "column": 8 }, "end": { - "line": 60, - "column": 5 + "line": 47, + "column": 9 } } }, { - "type": "CommentLine", - "value": " TODO: throw error on invalid path", - "start": 1150, - "end": 1186, + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 800, + "end": 803, "loc": { "start": { - "line": 63, - "column": 4 + "line": 47, + "column": 9 }, "end": { - "line": 63, - "column": 40 + "line": 47, + "column": 12 } } }, { - "type": "CommentBlock", - "value": "*\n * @public\n *\n * @desc Deep clone an Object\n *\n * @param {Config} [config={}] Configuration object\n * @returns {object} Deep cloned Object\n *\n * @example\n *\n * const obj = new SuperObject({ key1: [\"1\", 1, true, (a, b) => a+b], [Symbol(\"key2\")]: {s: \"s\"} });\n * const clone = obj.clone();\n *\n * console.log(clone);\n * // { key1: [\"1\", 1, true, (a, b) => a+b], Symbol(\"key2\"): {s: \"s\"} }\n *\n ", - "start": 1437, - "end": 1865, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "key", + "start": 804, + "end": 807, "loc": { "start": { - "line": 73, - "column": 2 + "line": 47, + "column": 13 }, "end": { - "line": 89, - "column": 5 + "line": 47, + "column": 16 } } }, { - "type": "CommentLine", - "value": " $FlowFixMe", - "start": 1868, - "end": 1881, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "of", + "start": 808, + "end": 810, "loc": { "start": { - "line": 90, - "column": 2 + "line": 47, + "column": 17 }, "end": { - "line": 90, - "column": 15 + "line": 47, + "column": 19 } } }, { - "type": "CommentBlock", - "value": "*\n * @private\n *\n * @desc Deep clone helper\n *\n * @param {Item} item\n * @returns {any} cloned item\n ", - "start": 1963, - "end": 2095, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keys", + "start": 811, + "end": 815, "loc": { "start": { - "line": 94, - "column": 4 + "line": 47, + "column": 20 }, "end": { - "line": 101, - "column": 7 + "line": 47, + "column": 24 } } }, { - "type": "CommentLine", - "value": " $FlowFixMe", - "start": 2561, - "end": 2574, + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 815, + "end": 816, "loc": { "start": { - "line": 122, - "column": 8 + "line": 47, + "column": 24 }, "end": { - "line": 122, - "column": 21 + "line": 47, + "column": 25 } } - } - ], - "tokens": [ + }, { - "type": "CommentBlock", - "value": "*\n * \n * @module super/object\n ", - "start": 0, - "end": 35, + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 817, + "end": 818, "loc": { "start": { - "line": 1, - "column": 0 + "line": 47, + "column": 26 }, "end": { - "line": 4, - "column": 3 + "line": 47, + "column": 27 } } }, { "type": { - "label": "import", - "keyword": "import", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5813,23 +8741,23 @@ "binop": null, "updateContext": null }, - "value": "import", - "start": 37, - "end": 43, + "value": "if", + "start": 825, + "end": 827, "loc": { "start": { - "line": 6, - "column": 0 + "line": 48, + "column": 6 }, "end": { - "line": 6, - "column": 6 + "line": 48, + "column": 8 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -5839,16 +8767,44 @@ "postfix": false, "binop": null }, - "start": 44, - "end": 45, + "start": 828, + "end": 829, "loc": { "start": { - "line": 6, - "column": 7 + "line": 48, + "column": 9 }, "end": { - "line": 6, - "column": 8 + "line": 48, + "column": 10 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 829, + "end": 835, + "loc": { + "start": { + "line": 48, + "column": 10 + }, + "end": { + "line": 48, + "column": 16 } } }, @@ -5864,23 +8820,23 @@ "postfix": false, "binop": null }, - "value": "InstanceType", - "start": 46, - "end": 58, + "value": "item", + "start": 836, + "end": 840, "loc": { "start": { - "line": 6, - "column": 9 + "line": 48, + "column": 17 }, "end": { - "line": 6, + "line": 48, "column": 21 } } }, { "type": { - "label": ",", + "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -5888,19 +8844,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 58, - "end": 59, + "value": "===", + "start": 841, + "end": 844, "loc": { "start": { - "line": 6, - "column": 21 + "line": 48, + "column": 22 }, "end": { - "line": 6, - "column": 22 + "line": 48, + "column": 25 } } }, @@ -5917,22 +8874,22 @@ "binop": null }, "value": "PrimitiveType", - "start": 60, - "end": 73, + "start": 845, + "end": 858, "loc": { "start": { - "line": 6, - "column": 23 + "line": 48, + "column": 26 }, "end": { - "line": 6, - "column": 36 + "line": 48, + "column": 39 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -5940,18 +8897,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 74, - "end": 75, + "start": 858, + "end": 859, "loc": { "start": { - "line": 6, - "column": 37 + "line": 48, + "column": 39 }, "end": { - "line": 6, - "column": 38 + "line": 48, + "column": 40 } } }, @@ -5967,23 +8925,50 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 76, - "end": 80, + "value": "OBJECT", + "start": 859, + "end": 865, + "loc": { + "start": { + "line": 48, + "column": 40 + }, + "end": { + "line": 48, + "column": 46 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 866, + "end": 868, "loc": { "start": { - "line": 6, - "column": 39 + "line": 48, + "column": 47 }, "end": { - "line": 6, - "column": 43 + "line": 48, + "column": 49 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -5991,26 +8976,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "../../../shared/src/constants", - "start": 81, - "end": 112, + "value": "key", + "start": 869, + "end": 872, "loc": { "start": { - "line": 6, - "column": 44 + "line": 48, + "column": 50 }, "end": { - "line": 6, - "column": 75 + "line": 48, + "column": 53 } } }, { "type": { - "label": ";", + "label": "in", + "keyword": "in", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -6018,58 +9003,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 7, "updateContext": null }, - "start": 112, - "end": 113, - "loc": { - "start": { - "line": 6, - "column": 75 - }, - "end": { - "line": 6, - "column": 76 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {object} Config\n * @property {boolean} [includeNonEnumerable=false]\n ", - "start": 115, - "end": 202, + "value": "in", + "start": 873, + "end": 875, "loc": { "start": { - "line": 8, - "column": 0 + "line": 48, + "column": 54 }, "end": { - "line": 11, - "column": 3 + "line": 48, + "column": 56 } } }, { - "type": "CommentBlock", - "value": "*\n *\n * Object with superpowers! 💪\n *\n * @public\n *\n ", - "start": 204, - "end": 262, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "item", + "start": 876, + "end": 880, "loc": { "start": { - "line": 13, - "column": 0 + "line": 48, + "column": 57 }, "end": { - "line": 19, - "column": 3 + "line": 48, + "column": 61 } } }, { "type": { - "label": "class", - "keyword": "class", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -6077,20 +9056,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "class", - "start": 263, - "end": 268, + "start": 880, + "end": 881, "loc": { "start": { - "line": 20, - "column": 0 + "line": 48, + "column": 61 }, "end": { - "line": 20, - "column": 5 + "line": 48, + "column": 62 } } }, @@ -6106,45 +9083,44 @@ "postfix": false, "binop": null }, - "value": "_Object", - "start": 269, - "end": 276, + "value": "item", + "start": 882, + "end": 886, "loc": { "start": { - "line": 20, - "column": 6 + "line": 48, + "column": 63 }, "end": { - "line": 20, - "column": 13 + "line": 48, + "column": 67 } } }, { "type": { - "label": "extends", - "keyword": "extends", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "extends", - "start": 277, - "end": 284, + "value": "=", + "start": 887, + "end": 888, "loc": { "start": { - "line": 20, - "column": 14 + "line": 48, + "column": 68 }, "end": { - "line": 20, - "column": 21 + "line": 48, + "column": 69 } } }, @@ -6160,23 +9136,23 @@ "postfix": false, "binop": null }, - "value": "Object", - "start": 285, - "end": 291, + "value": "item", + "start": 889, + "end": 893, "loc": { "start": { - "line": 20, - "column": 22 + "line": 48, + "column": 70 }, "end": { - "line": 20, - "column": 28 + "line": 48, + "column": 74 } } }, { "type": { - "label": "{", + "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -6184,186 +9160,189 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 292, - "end": 293, + "start": 893, + "end": 894, "loc": { "start": { - "line": 20, - "column": 29 + "line": 48, + "column": 74 }, "end": { - "line": 20, - "column": 30 + "line": 48, + "column": 75 } } }, { - "type": "CommentBlock", - "value": "*\n * @public\n *\n * @desc Construct an Object\n *\n * @param {Object} object\n ", - "start": 296, - "end": 387, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "key", + "start": 894, + "end": 897, "loc": { "start": { - "line": 21, - "column": 2 + "line": 48, + "column": 75 }, "end": { - "line": 27, - "column": 5 + "line": 48, + "column": 78 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "constructor", - "start": 390, - "end": 401, + "start": 897, + "end": 898, "loc": { "start": { - "line": 28, - "column": 2 + "line": 48, + "column": 78 }, "end": { - "line": 28, - "column": 13 + "line": 48, + "column": 79 } } }, { "type": { - "label": "(", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 401, - "end": 402, + "start": 898, + "end": 899, "loc": { "start": { - "line": 28, - "column": 13 + "line": 48, + "column": 79 }, "end": { - "line": 28, - "column": 14 + "line": 48, + "column": 80 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "object", - "start": 402, - "end": 408, + "value": "else", + "start": 899, + "end": 903, "loc": { "start": { - "line": 28, - "column": 14 + "line": 48, + "column": 80 }, "end": { - "line": 28, - "column": 20 + "line": 48, + "column": 84 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "return", + "keyword": "return", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 408, - "end": 409, + "value": "return", + "start": 904, + "end": 910, "loc": { "start": { - "line": 28, - "column": 20 + "line": 48, + "column": 85 }, "end": { - "line": 28, - "column": 21 + "line": 48, + "column": 91 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "false", + "keyword": "false", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 410, - "end": 411, - "loc": { - "start": { - "line": 28, - "column": 22 - }, - "end": { - "line": 28, - "column": 23 - } - } - }, - { - "type": "CommentLine", - "value": " $FlowFixMe", - "start": 416, - "end": 429, + "value": "false", + "start": 911, + "end": 916, "loc": { "start": { - "line": 29, - "column": 4 + "line": 48, + "column": 92 }, "end": { - "line": 29, - "column": 17 + "line": 48, + "column": 97 } } }, { "type": { - "label": "super", - "keyword": "super", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -6372,25 +9351,24 @@ "binop": null, "updateContext": null }, - "value": "super", - "start": 434, - "end": 439, + "start": 916, + "end": 917, "loc": { "start": { - "line": 30, - "column": 4 + "line": 48, + "column": 97 }, "end": { - "line": 30, - "column": 9 + "line": 48, + "column": 98 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -6398,67 +9376,72 @@ "postfix": false, "binop": null }, - "start": 439, - "end": 440, + "start": 922, + "end": 923, "loc": { "start": { - "line": 30, - "column": 9 + "line": 49, + "column": 4 }, "end": { - "line": 30, - "column": 10 + "line": 49, + "column": 5 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "object", - "start": 440, - "end": 446, + "value": "return", + "start": 928, + "end": 934, "loc": { "start": { - "line": 30, - "column": 10 + "line": 50, + "column": 4 }, "end": { - "line": 30, - "column": 16 + "line": 50, + "column": 10 } } }, { "type": { - "label": ")", + "label": "true", + "keyword": "true", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 446, - "end": 447, + "value": "true", + "start": 935, + "end": 939, "loc": { "start": { - "line": 30, - "column": 16 + "line": 50, + "column": 11 }, "end": { - "line": 30, - "column": 17 + "line": 50, + "column": 15 } } }, @@ -6475,16 +9458,16 @@ "binop": null, "updateContext": null }, - "start": 447, - "end": 448, + "start": 939, + "end": 940, "loc": { "start": { - "line": 30, - "column": 17 + "line": 50, + "column": 15 }, "end": { - "line": 30, - "column": 18 + "line": 50, + "column": 16 } } }, @@ -6500,31 +9483,31 @@ "postfix": false, "binop": null }, - "start": 451, - "end": 452, + "start": 943, + "end": 944, "loc": { "start": { - "line": 31, + "line": 51, "column": 2 }, "end": { - "line": 31, + "line": 51, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * @public\n *\n * @desc Check for nested value from string key\n *\n * @param {string} path\n * @return {boolean} property value exists\n ", - "start": 456, - "end": 609, + "value": "*\n * @public\n *\n * @desc Get nested JavaScript object value from string key\n *\n * @param {string} path\n * @return {Item} property value\n ", + "start": 948, + "end": 1104, "loc": { "start": { - "line": 33, + "line": 53, "column": 2 }, "end": { - "line": 40, + "line": 60, "column": 5 } } @@ -6541,16 +9524,16 @@ "postfix": false, "binop": null }, - "value": "hasNested", - "start": 612, - "end": 621, + "value": "getNested", + "start": 1107, + "end": 1116, "loc": { "start": { - "line": 41, + "line": 61, "column": 2 }, "end": { - "line": 41, + "line": 61, "column": 11 } } @@ -6567,15 +9550,15 @@ "postfix": false, "binop": null }, - "start": 621, - "end": 622, + "start": 1116, + "end": 1117, "loc": { "start": { - "line": 41, + "line": 61, "column": 11 }, "end": { - "line": 41, + "line": 61, "column": 12 } } @@ -6593,15 +9576,15 @@ "binop": null }, "value": "path", - "start": 622, - "end": 626, + "start": 1117, + "end": 1121, "loc": { "start": { - "line": 41, + "line": 61, "column": 12 }, "end": { - "line": 41, + "line": 61, "column": 16 } } @@ -6618,15 +9601,15 @@ "postfix": false, "binop": null }, - "start": 626, - "end": 627, + "start": 1121, + "end": 1122, "loc": { "start": { - "line": 41, + "line": 61, "column": 16 }, "end": { - "line": 41, + "line": 61, "column": 17 } } @@ -6643,15 +9626,15 @@ "postfix": false, "binop": null }, - "start": 628, - "end": 629, + "start": 1123, + "end": 1124, "loc": { "start": { - "line": 41, + "line": 61, "column": 18 }, "end": { - "line": 41, + "line": 61, "column": 19 } } @@ -6671,15 +9654,15 @@ "updateContext": null }, "value": "let", - "start": 634, - "end": 637, + "start": 1129, + "end": 1132, "loc": { "start": { - "line": 42, + "line": 62, "column": 4 }, "end": { - "line": 42, + "line": 62, "column": 7 } } @@ -6697,15 +9680,15 @@ "binop": null }, "value": "item", - "start": 638, - "end": 642, + "start": 1133, + "end": 1137, "loc": { "start": { - "line": 42, + "line": 62, "column": 8 }, "end": { - "line": 42, + "line": 62, "column": 12 } } @@ -6724,15 +9707,15 @@ "updateContext": null }, "value": "=", - "start": 643, - "end": 644, + "start": 1138, + "end": 1139, "loc": { "start": { - "line": 42, + "line": 62, "column": 13 }, "end": { - "line": 42, + "line": 62, "column": 14 } } @@ -6752,15 +9735,15 @@ "updateContext": null }, "value": "this", - "start": 645, - "end": 649, + "start": 1140, + "end": 1144, "loc": { "start": { - "line": 42, + "line": 62, "column": 15 }, "end": { - "line": 42, + "line": 62, "column": 19 } } @@ -6778,15 +9761,15 @@ "binop": null, "updateContext": null }, - "start": 649, - "end": 650, + "start": 1144, + "end": 1145, "loc": { "start": { - "line": 42, + "line": 62, "column": 19 }, "end": { - "line": 42, + "line": 62, "column": 20 } } @@ -6794,15 +9777,15 @@ { "type": "CommentLine", "value": " TODO: throw error on invalid path", - "start": 655, - "end": 691, + "start": 1150, + "end": 1186, "loc": { "start": { - "line": 43, + "line": 63, "column": 4 }, "end": { - "line": 43, + "line": 63, "column": 40 } } @@ -6820,15 +9803,15 @@ "binop": null }, "value": "path", - "start": 696, - "end": 700, + "start": 1191, + "end": 1195, "loc": { "start": { - "line": 44, + "line": 64, "column": 4 }, "end": { - "line": 44, + "line": 64, "column": 8 } } @@ -6847,15 +9830,15 @@ "updateContext": null }, "value": "=", - "start": 701, - "end": 702, + "start": 1196, + "end": 1197, "loc": { "start": { - "line": 44, + "line": 64, "column": 9 }, "end": { - "line": 44, + "line": 64, "column": 10 } } @@ -6873,15 +9856,15 @@ "binop": null }, "value": "path", - "start": 703, - "end": 707, + "start": 1198, + "end": 1202, "loc": { "start": { - "line": 44, + "line": 64, "column": 11 }, "end": { - "line": 44, + "line": 64, "column": 15 } } @@ -6899,15 +9882,15 @@ "binop": null, "updateContext": null }, - "start": 707, - "end": 708, + "start": 1202, + "end": 1203, "loc": { "start": { - "line": 44, + "line": 64, "column": 15 }, "end": { - "line": 44, + "line": 64, "column": 16 } } @@ -6925,15 +9908,15 @@ "binop": null }, "value": "replace", - "start": 708, - "end": 715, + "start": 1203, + "end": 1210, "loc": { "start": { - "line": 44, + "line": 64, "column": 16 }, "end": { - "line": 44, + "line": 64, "column": 23 } } @@ -6950,15 +9933,15 @@ "postfix": false, "binop": null }, - "start": 715, - "end": 716, + "start": 1210, + "end": 1211, "loc": { "start": { - "line": 44, + "line": 64, "column": 23 }, "end": { - "line": 44, + "line": 64, "column": 24 } } @@ -6980,15 +9963,15 @@ "pattern": "\\[(\\w+)\\]", "flags": "" }, - "start": 716, - "end": 727, + "start": 1211, + "end": 1222, "loc": { "start": { - "line": 44, + "line": 64, "column": 24 }, "end": { - "line": 44, + "line": 64, "column": 35 } } @@ -7006,15 +9989,15 @@ "binop": null, "updateContext": null }, - "start": 727, - "end": 728, + "start": 1222, + "end": 1223, "loc": { "start": { - "line": 44, + "line": 64, "column": 35 }, "end": { - "line": 44, + "line": 64, "column": 36 } } @@ -7033,15 +10016,15 @@ "updateContext": null }, "value": ".$1", - "start": 729, - "end": 734, + "start": 1224, + "end": 1229, "loc": { "start": { - "line": 44, + "line": 64, "column": 37 }, "end": { - "line": 44, + "line": 64, "column": 42 } } @@ -7058,15 +10041,15 @@ "postfix": false, "binop": null }, - "start": 734, - "end": 735, + "start": 1229, + "end": 1230, "loc": { "start": { - "line": 44, + "line": 64, "column": 42 }, "end": { - "line": 44, + "line": 64, "column": 43 } } @@ -7084,15 +10067,15 @@ "binop": null, "updateContext": null }, - "start": 735, - "end": 736, + "start": 1230, + "end": 1231, "loc": { "start": { - "line": 44, + "line": 64, "column": 43 }, "end": { - "line": 44, + "line": 64, "column": 44 } } @@ -7110,15 +10093,15 @@ "binop": null }, "value": "replace", - "start": 736, - "end": 743, + "start": 1231, + "end": 1238, "loc": { "start": { - "line": 44, + "line": 64, "column": 44 }, "end": { - "line": 44, + "line": 64, "column": 51 } } @@ -7135,15 +10118,15 @@ "postfix": false, "binop": null }, - "start": 743, - "end": 744, + "start": 1238, + "end": 1239, "loc": { "start": { - "line": 44, + "line": 64, "column": 51 }, "end": { - "line": 44, + "line": 64, "column": 52 } } @@ -7165,15 +10148,15 @@ "pattern": "^\\.", "flags": "" }, - "start": 744, - "end": 749, + "start": 1239, + "end": 1244, "loc": { "start": { - "line": 44, + "line": 64, "column": 52 }, "end": { - "line": 44, + "line": 64, "column": 57 } } @@ -7191,15 +10174,15 @@ "binop": null, "updateContext": null }, - "start": 749, - "end": 750, + "start": 1244, + "end": 1245, "loc": { "start": { - "line": 44, + "line": 64, "column": 57 }, "end": { - "line": 44, + "line": 64, "column": 58 } } @@ -7218,15 +10201,15 @@ "updateContext": null }, "value": "", - "start": 751, - "end": 753, + "start": 1246, + "end": 1248, "loc": { "start": { - "line": 44, + "line": 64, "column": 59 }, "end": { - "line": 44, + "line": 64, "column": 61 } } @@ -7243,15 +10226,15 @@ "postfix": false, "binop": null }, - "start": 753, - "end": 754, + "start": 1248, + "end": 1249, "loc": { "start": { - "line": 44, + "line": 64, "column": 61 }, "end": { - "line": 44, + "line": 64, "column": 62 } } @@ -7269,15 +10252,15 @@ "binop": null, "updateContext": null }, - "start": 754, - "end": 755, + "start": 1249, + "end": 1250, "loc": { "start": { - "line": 44, + "line": 64, "column": 62 }, "end": { - "line": 44, + "line": 64, "column": 63 } } @@ -7297,15 +10280,15 @@ "updateContext": null }, "value": "const", - "start": 761, - "end": 766, + "start": 1256, + "end": 1261, "loc": { "start": { - "line": 46, + "line": 66, "column": 4 }, "end": { - "line": 46, + "line": 66, "column": 9 } } @@ -7323,15 +10306,15 @@ "binop": null }, "value": "keys", - "start": 767, - "end": 771, + "start": 1262, + "end": 1266, "loc": { "start": { - "line": 46, + "line": 66, "column": 10 }, "end": { - "line": 46, + "line": 66, "column": 14 } } @@ -7350,15 +10333,15 @@ "updateContext": null }, "value": "=", - "start": 772, - "end": 773, + "start": 1267, + "end": 1268, "loc": { "start": { - "line": 46, + "line": 66, "column": 15 }, "end": { - "line": 46, + "line": 66, "column": 16 } } @@ -7376,15 +10359,15 @@ "binop": null }, "value": "path", - "start": 774, - "end": 778, + "start": 1269, + "end": 1273, "loc": { "start": { - "line": 46, + "line": 66, "column": 17 }, "end": { - "line": 46, + "line": 66, "column": 21 } } @@ -7402,15 +10385,15 @@ "binop": null, "updateContext": null }, - "start": 778, - "end": 779, + "start": 1273, + "end": 1274, "loc": { "start": { - "line": 46, + "line": 66, "column": 21 }, "end": { - "line": 46, + "line": 66, "column": 22 } } @@ -7428,15 +10411,15 @@ "binop": null }, "value": "split", - "start": 779, - "end": 784, + "start": 1274, + "end": 1279, "loc": { "start": { - "line": 46, + "line": 66, "column": 22 }, "end": { - "line": 46, + "line": 66, "column": 27 } } @@ -7453,15 +10436,15 @@ "postfix": false, "binop": null }, - "start": 784, - "end": 785, + "start": 1279, + "end": 1280, "loc": { "start": { - "line": 46, + "line": 66, "column": 27 }, "end": { - "line": 46, + "line": 66, "column": 28 } } @@ -7480,15 +10463,15 @@ "updateContext": null }, "value": ".", - "start": 785, - "end": 788, + "start": 1280, + "end": 1283, "loc": { "start": { - "line": 46, + "line": 66, "column": 28 }, "end": { - "line": 46, + "line": 66, "column": 31 } } @@ -7505,15 +10488,15 @@ "postfix": false, "binop": null }, - "start": 788, - "end": 789, + "start": 1283, + "end": 1284, "loc": { "start": { - "line": 46, + "line": 66, "column": 31 }, "end": { - "line": 46, + "line": 66, "column": 32 } } @@ -7531,15 +10514,15 @@ "binop": null, "updateContext": null }, - "start": 789, - "end": 790, + "start": 1284, + "end": 1285, "loc": { "start": { - "line": 46, + "line": 66, "column": 32 }, "end": { - "line": 46, + "line": 66, "column": 33 } } @@ -7559,15 +10542,15 @@ "updateContext": null }, "value": "for", - "start": 795, - "end": 798, + "start": 1290, + "end": 1293, "loc": { "start": { - "line": 47, + "line": 67, "column": 4 }, "end": { - "line": 47, + "line": 67, "column": 7 } } @@ -7584,15 +10567,15 @@ "postfix": false, "binop": null }, - "start": 799, - "end": 800, + "start": 1294, + "end": 1295, "loc": { "start": { - "line": 47, + "line": 67, "column": 8 }, "end": { - "line": 47, + "line": 67, "column": 9 } } @@ -7612,15 +10595,15 @@ "updateContext": null }, "value": "let", - "start": 800, - "end": 803, + "start": 1295, + "end": 1298, "loc": { "start": { - "line": 47, + "line": 67, "column": 9 }, "end": { - "line": 47, + "line": 67, "column": 12 } } @@ -7638,15 +10621,15 @@ "binop": null }, "value": "key", - "start": 804, - "end": 807, + "start": 1299, + "end": 1302, "loc": { "start": { - "line": 47, + "line": 67, "column": 13 }, "end": { - "line": 47, + "line": 67, "column": 16 } } @@ -7664,15 +10647,15 @@ "binop": null }, "value": "of", - "start": 808, - "end": 810, + "start": 1303, + "end": 1305, "loc": { "start": { - "line": 47, + "line": 67, "column": 17 }, "end": { - "line": 47, + "line": 67, "column": 19 } } @@ -7690,15 +10673,15 @@ "binop": null }, "value": "keys", - "start": 811, - "end": 815, + "start": 1306, + "end": 1310, "loc": { "start": { - "line": 47, + "line": 67, "column": 20 }, "end": { - "line": 47, + "line": 67, "column": 24 } } @@ -7715,15 +10698,15 @@ "postfix": false, "binop": null }, - "start": 815, - "end": 816, + "start": 1310, + "end": 1311, "loc": { "start": { - "line": 47, + "line": 67, "column": 24 }, "end": { - "line": 47, + "line": 67, "column": 25 } } @@ -7740,15 +10723,15 @@ "postfix": false, "binop": null }, - "start": 817, - "end": 818, + "start": 1312, + "end": 1313, "loc": { "start": { - "line": 47, + "line": 67, "column": 26 }, "end": { - "line": 47, + "line": 67, "column": 27 } } @@ -7768,15 +10751,15 @@ "updateContext": null }, "value": "if", - "start": 825, - "end": 827, + "start": 1320, + "end": 1322, "loc": { "start": { - "line": 48, + "line": 68, "column": 6 }, "end": { - "line": 48, + "line": 68, "column": 8 } } @@ -7793,15 +10776,15 @@ "postfix": false, "binop": null }, - "start": 828, - "end": 829, + "start": 1323, + "end": 1324, "loc": { "start": { - "line": 48, + "line": 68, "column": 9 }, "end": { - "line": 48, + "line": 68, "column": 10 } } @@ -7821,15 +10804,15 @@ "updateContext": null }, "value": "typeof", - "start": 829, - "end": 835, + "start": 1324, + "end": 1330, "loc": { "start": { - "line": 48, + "line": 68, "column": 10 }, "end": { - "line": 48, + "line": 68, "column": 16 } } @@ -7847,15 +10830,15 @@ "binop": null }, "value": "item", - "start": 836, - "end": 840, + "start": 1331, + "end": 1335, "loc": { "start": { - "line": 48, + "line": 68, "column": 17 }, "end": { - "line": 48, + "line": 68, "column": 21 } } @@ -7874,15 +10857,15 @@ "updateContext": null }, "value": "===", - "start": 841, - "end": 844, + "start": 1336, + "end": 1339, "loc": { "start": { - "line": 48, + "line": 68, "column": 22 }, "end": { - "line": 48, + "line": 68, "column": 25 } } @@ -7900,15 +10883,15 @@ "binop": null }, "value": "PrimitiveType", - "start": 845, - "end": 858, + "start": 1340, + "end": 1353, "loc": { "start": { - "line": 48, + "line": 68, "column": 26 }, "end": { - "line": 48, + "line": 68, "column": 39 } } @@ -7926,15 +10909,15 @@ "binop": null, "updateContext": null }, - "start": 858, - "end": 859, + "start": 1353, + "end": 1354, "loc": { "start": { - "line": 48, + "line": 68, "column": 39 }, "end": { - "line": 48, + "line": 68, "column": 40 } } @@ -7952,15 +10935,15 @@ "binop": null }, "value": "OBJECT", - "start": 859, - "end": 865, + "start": 1354, + "end": 1360, "loc": { "start": { - "line": 48, + "line": 68, "column": 40 }, "end": { - "line": 48, + "line": 68, "column": 46 } } @@ -7979,15 +10962,15 @@ "updateContext": null }, "value": "&&", - "start": 866, - "end": 868, + "start": 1361, + "end": 1363, "loc": { "start": { - "line": 48, + "line": 68, "column": 47 }, "end": { - "line": 48, + "line": 68, "column": 49 } } @@ -8005,15 +10988,15 @@ "binop": null }, "value": "key", - "start": 869, - "end": 872, + "start": 1364, + "end": 1367, "loc": { "start": { - "line": 48, + "line": 68, "column": 50 }, "end": { - "line": 48, + "line": 68, "column": 53 } } @@ -8033,15 +11016,15 @@ "updateContext": null }, "value": "in", - "start": 873, - "end": 875, + "start": 1368, + "end": 1370, "loc": { "start": { - "line": 48, + "line": 68, "column": 54 }, "end": { - "line": 48, + "line": 68, "column": 56 } } @@ -8059,15 +11042,15 @@ "binop": null }, "value": "item", - "start": 876, - "end": 880, + "start": 1371, + "end": 1375, "loc": { "start": { - "line": 48, + "line": 68, "column": 57 }, "end": { - "line": 48, + "line": 68, "column": 61 } } @@ -8084,15 +11067,15 @@ "postfix": false, "binop": null }, - "start": 880, - "end": 881, + "start": 1375, + "end": 1376, "loc": { "start": { - "line": 48, + "line": 68, "column": 61 }, "end": { - "line": 48, + "line": 68, "column": 62 } } @@ -8110,15 +11093,15 @@ "binop": null }, "value": "item", - "start": 882, - "end": 886, + "start": 1377, + "end": 1381, "loc": { "start": { - "line": 48, + "line": 68, "column": 63 }, "end": { - "line": 48, + "line": 68, "column": 67 } } @@ -8137,15 +11120,15 @@ "updateContext": null }, "value": "=", - "start": 887, - "end": 888, + "start": 1382, + "end": 1383, "loc": { "start": { - "line": 48, + "line": 68, "column": 68 }, "end": { - "line": 48, + "line": 68, "column": 69 } } @@ -8163,15 +11146,15 @@ "binop": null }, "value": "item", - "start": 889, - "end": 893, + "start": 1384, + "end": 1388, "loc": { "start": { - "line": 48, + "line": 68, "column": 70 }, "end": { - "line": 48, + "line": 68, "column": 74 } } @@ -8189,15 +11172,15 @@ "binop": null, "updateContext": null }, - "start": 893, - "end": 894, + "start": 1388, + "end": 1389, "loc": { "start": { - "line": 48, + "line": 68, "column": 74 }, "end": { - "line": 48, + "line": 68, "column": 75 } } @@ -8215,15 +11198,15 @@ "binop": null }, "value": "key", - "start": 894, - "end": 897, + "start": 1389, + "end": 1392, "loc": { "start": { - "line": 48, + "line": 68, "column": 75 }, "end": { - "line": 48, + "line": 68, "column": 78 } } @@ -8241,15 +11224,15 @@ "binop": null, "updateContext": null }, - "start": 897, - "end": 898, + "start": 1392, + "end": 1393, "loc": { "start": { - "line": 48, + "line": 68, "column": 78 }, "end": { - "line": 48, + "line": 68, "column": 79 } } @@ -8267,15 +11250,15 @@ "binop": null, "updateContext": null }, - "start": 898, - "end": 899, + "start": 1393, + "end": 1394, "loc": { "start": { - "line": 48, + "line": 68, "column": 79 }, "end": { - "line": 48, + "line": 68, "column": 80 } } @@ -8295,15 +11278,15 @@ "updateContext": null }, "value": "else", - "start": 899, - "end": 903, + "start": 1394, + "end": 1398, "loc": { "start": { - "line": 48, + "line": 68, "column": 80 }, "end": { - "line": 48, + "line": 68, "column": 84 } } @@ -8323,47 +11306,19 @@ "updateContext": null }, "value": "return", - "start": 904, - "end": 910, + "start": 1399, + "end": 1405, "loc": { "start": { - "line": 48, + "line": 68, "column": 85 }, "end": { - "line": 48, + "line": 68, "column": 91 } } }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 911, - "end": 916, - "loc": { - "start": { - "line": 48, - "column": 92 - }, - "end": { - "line": 48, - "column": 97 - } - } - }, { "type": { "label": ";", @@ -8377,16 +11332,16 @@ "binop": null, "updateContext": null }, - "start": 916, - "end": 917, + "start": 1405, + "end": 1406, "loc": { "start": { - "line": 48, - "column": 97 + "line": 68, + "column": 91 }, "end": { - "line": 48, - "column": 98 + "line": 68, + "column": 92 } } }, @@ -8402,15 +11357,15 @@ "postfix": false, "binop": null }, - "start": 922, - "end": 923, + "start": 1411, + "end": 1412, "loc": { "start": { - "line": 49, + "line": 69, "column": 4 }, "end": { - "line": 49, + "line": 69, "column": 5 } } @@ -8430,23 +11385,22 @@ "updateContext": null }, "value": "return", - "start": 928, - "end": 934, + "start": 1417, + "end": 1423, "loc": { "start": { - "line": 50, + "line": 70, "column": 4 }, "end": { - "line": 50, + "line": 70, "column": 10 } } }, { "type": { - "label": "true", - "keyword": "true", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -8454,19 +11408,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "true", - "start": 935, - "end": 939, + "value": "item", + "start": 1424, + "end": 1428, "loc": { "start": { - "line": 50, + "line": 70, "column": 11 }, "end": { - "line": 50, + "line": 70, "column": 15 } } @@ -8484,15 +11437,15 @@ "binop": null, "updateContext": null }, - "start": 939, - "end": 940, + "start": 1428, + "end": 1429, "loc": { "start": { - "line": 50, + "line": 70, "column": 15 }, "end": { - "line": 50, + "line": 70, "column": 16 } } @@ -8509,35 +11462,51 @@ "postfix": false, "binop": null }, - "start": 943, - "end": 944, + "start": 1432, + "end": 1433, "loc": { "start": { - "line": 51, + "line": 71, "column": 2 }, "end": { - "line": 51, + "line": 71, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * @public\n *\n * @desc Get nested JavaScript object value from string key\n *\n * @param {string} path\n * @return {Item} property value\n ", - "start": 948, - "end": 1104, + "value": "*\n * @public\n *\n * @desc Deep clone an Object\n *\n * @param {Config} [config={}] Configuration object\n * @returns {object} Deep cloned Object\n *\n * @example\n *\n * const obj = new SuperObject({ key1: [\"1\", 1, true, (a, b) => a+b], [Symbol(\"key2\")]: {s: \"s\"} });\n * const clone = obj.clone();\n *\n * console.log(clone);\n * // { key1: [\"1\", 1, true, (a, b) => a+b], Symbol(\"key2\"): {s: \"s\"} }\n *\n ", + "start": 1437, + "end": 1865, "loc": { "start": { - "line": 53, + "line": 73, "column": 2 }, "end": { - "line": 60, + "line": 89, "column": 5 } } }, + { + "type": "CommentLine", + "value": " $FlowFixMe", + "start": 1868, + "end": 1881, + "loc": { + "start": { + "line": 90, + "column": 2 + }, + "end": { + "line": 90, + "column": 15 + } + } + }, { "type": { "label": "name", @@ -8550,17 +11519,17 @@ "postfix": false, "binop": null }, - "value": "getNested", - "start": 1107, - "end": 1116, + "value": "clone", + "start": 1884, + "end": 1889, "loc": { "start": { - "line": 61, + "line": 91, "column": 2 }, "end": { - "line": 61, - "column": 11 + "line": 91, + "column": 7 } } }, @@ -8576,16 +11545,16 @@ "postfix": false, "binop": null }, - "start": 1116, - "end": 1117, + "start": 1889, + "end": 1890, "loc": { "start": { - "line": 61, - "column": 11 + "line": 91, + "column": 7 }, "end": { - "line": 61, - "column": 12 + "line": 91, + "column": 8 } } }, @@ -8601,20 +11570,97 @@ "postfix": false, "binop": null }, - "value": "path", - "start": 1117, - "end": 1121, + "value": "config", + "start": 1890, + "end": 1896, "loc": { "start": { - "line": 61, - "column": 12 + "line": 91, + "column": 8 }, "end": { - "line": 61, + "line": 91, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1897, + "end": 1898, + "loc": { + "start": { + "line": 91, + "column": 15 + }, + "end": { + "line": 91, "column": 16 } } }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1899, + "end": 1900, + "loc": { + "start": { + "line": 91, + "column": 17 + }, + "end": { + "line": 91, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1900, + "end": 1901, + "loc": { + "start": { + "line": 91, + "column": 18 + }, + "end": { + "line": 91, + "column": 19 + } + } + }, { "type": { "label": ")", @@ -8627,16 +11673,16 @@ "postfix": false, "binop": null }, - "start": 1121, - "end": 1122, + "start": 1901, + "end": 1902, "loc": { "start": { - "line": 61, - "column": 16 + "line": 91, + "column": 19 }, "end": { - "line": 61, - "column": 17 + "line": 91, + "column": 20 } } }, @@ -8652,23 +11698,23 @@ "postfix": false, "binop": null }, - "start": 1123, - "end": 1124, + "start": 1903, + "end": 1904, "loc": { "start": { - "line": 61, - "column": 18 + "line": 91, + "column": 21 }, "end": { - "line": 61, - "column": 19 + "line": 91, + "column": 22 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -8679,17 +11725,42 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 1129, - "end": 1132, + "value": "const", + "start": 1909, + "end": 1914, "loc": { "start": { - "line": 62, + "line": 92, "column": 4 }, "end": { - "line": 62, - "column": 7 + "line": 92, + "column": 9 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1915, + "end": 1916, + "loc": { + "start": { + "line": 92, + "column": 10 + }, + "end": { + "line": 92, + "column": 11 } } }, @@ -8705,17 +11776,17 @@ "postfix": false, "binop": null }, - "value": "item", - "start": 1133, - "end": 1137, + "value": "includeNonEnumerable", + "start": 1917, + "end": 1937, "loc": { "start": { - "line": 62, - "column": 8 + "line": 92, + "column": 12 }, "end": { - "line": 62, - "column": 12 + "line": 92, + "column": 32 } } }, @@ -8733,23 +11804,23 @@ "updateContext": null }, "value": "=", - "start": 1138, - "end": 1139, + "start": 1938, + "end": 1939, "loc": { "start": { - "line": 62, - "column": 13 + "line": 92, + "column": 33 }, "end": { - "line": 62, - "column": 14 + "line": 92, + "column": 34 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "false", + "keyword": "false", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -8760,59 +11831,69 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 1140, - "end": 1144, + "value": "false", + "start": 1940, + "end": 1945, "loc": { "start": { - "line": 62, - "column": 15 + "line": 92, + "column": 35 }, "end": { - "line": 62, - "column": 19 + "line": 92, + "column": 40 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1144, - "end": 1145, + "start": 1946, + "end": 1947, "loc": { "start": { - "line": 62, - "column": 19 + "line": 92, + "column": 41 }, "end": { - "line": 62, - "column": 20 + "line": 92, + "column": 42 } } }, { - "type": "CommentLine", - "value": " TODO: throw error on invalid path", - "start": 1150, - "end": 1186, + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1948, + "end": 1949, "loc": { "start": { - "line": 63, - "column": 4 + "line": 92, + "column": 43 }, "end": { - "line": 63, - "column": 40 + "line": 92, + "column": 44 } } }, @@ -8828,96 +11909,86 @@ "postfix": false, "binop": null }, - "value": "path", - "start": 1191, - "end": 1195, + "value": "config", + "start": 1950, + "end": 1956, "loc": { "start": { - "line": 64, - "column": 4 + "line": 92, + "column": 45 }, "end": { - "line": 64, - "column": 8 + "line": 92, + "column": 51 } } }, { "type": { - "label": "=", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 1196, - "end": 1197, + "start": 1956, + "end": 1957, "loc": { "start": { - "line": 64, - "column": 9 + "line": 92, + "column": 51 }, "end": { - "line": 64, - "column": 10 + "line": 92, + "column": 52 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1198, - "end": 1202, + "type": "CommentBlock", + "value": "*\n * @private\n *\n * @desc Deep clone helper\n *\n * @param {Item} item\n * @returns {any} cloned item\n ", + "start": 1963, + "end": 2095, "loc": { "start": { - "line": 64, - "column": 11 + "line": 94, + "column": 4 }, "end": { - "line": 64, - "column": 15 + "line": 101, + "column": 7 } } }, { "type": { - "label": ".", + "label": "function", + "keyword": "function", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1202, - "end": 1203, + "value": "function", + "start": 2100, + "end": 2108, "loc": { "start": { - "line": 64, - "column": 15 + "line": 102, + "column": 4 }, "end": { - "line": 64, - "column": 16 + "line": 102, + "column": 12 } } }, @@ -8933,17 +12004,17 @@ "postfix": false, "binop": null }, - "value": "replace", - "start": 1203, - "end": 1210, + "value": "_clone", + "start": 2109, + "end": 2115, "loc": { "start": { - "line": 64, - "column": 16 + "line": 102, + "column": 13 }, "end": { - "line": 64, - "column": 23 + "line": 102, + "column": 19 } } }, @@ -8959,22 +12030,22 @@ "postfix": false, "binop": null }, - "start": 1210, - "end": 1211, + "start": 2115, + "end": 2116, "loc": { "start": { - "line": 64, - "column": 23 + "line": 102, + "column": 19 }, "end": { - "line": 64, - "column": 24 + "line": 102, + "column": 20 } } }, { "type": { - "label": "regexp", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -8982,82 +12053,76 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null - }, - "value": { - "pattern": "\\[(\\w+)\\]", - "flags": "" + "binop": null }, - "start": 1211, - "end": 1222, + "value": "item", + "start": 2116, + "end": 2120, "loc": { "start": { - "line": 64, - "column": 24 + "line": 102, + "column": 20 }, "end": { - "line": 64, - "column": 35 + "line": 102, + "column": 24 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1222, - "end": 1223, + "start": 2120, + "end": 2121, "loc": { "start": { - "line": 64, - "column": 35 + "line": 102, + "column": 24 }, "end": { - "line": 64, - "column": 36 + "line": 102, + "column": 25 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": ".$1", - "start": 1224, - "end": 1229, + "start": 2122, + "end": 2123, "loc": { "start": { - "line": 64, - "column": 37 + "line": 102, + "column": 26 }, "end": { - "line": 64, - "column": 42 + "line": 102, + "column": 27 } } }, { "type": { - "label": ")", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -9065,44 +12130,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1229, - "end": 1230, + "value": "if", + "start": 2130, + "end": 2132, "loc": { "start": { - "line": 64, - "column": 42 + "line": 103, + "column": 6 }, "end": { - "line": 64, - "column": 43 + "line": 103, + "column": 8 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1230, - "end": 1231, + "start": 2133, + "end": 2134, "loc": { "start": { - "line": 64, - "column": 43 + "line": 103, + "column": 9 }, "end": { - "line": 64, - "column": 44 + "line": 103, + "column": 10 } } }, @@ -9118,48 +12184,51 @@ "postfix": false, "binop": null }, - "value": "replace", - "start": 1231, - "end": 1238, + "value": "item", + "start": 2134, + "end": 2138, "loc": { "start": { - "line": 64, - "column": 44 + "line": 103, + "column": 10 }, "end": { - "line": 64, - "column": 51 + "line": 103, + "column": 14 } } }, { "type": { - "label": "(", + "label": "==/!=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 6, + "updateContext": null }, - "start": 1238, - "end": 1239, + "value": "===", + "start": 2139, + "end": 2142, "loc": { "start": { - "line": 64, - "column": 51 + "line": 103, + "column": 15 }, "end": { - "line": 64, - "column": 52 + "line": 103, + "column": 18 } } }, { "type": { - "label": "regexp", + "label": "null", + "keyword": "null", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -9170,26 +12239,23 @@ "binop": null, "updateContext": null }, - "value": { - "pattern": "^\\.", - "flags": "" - }, - "start": 1239, - "end": 1244, + "value": "null", + "start": 2143, + "end": 2147, "loc": { "start": { - "line": 64, - "column": 52 + "line": 103, + "column": 19 }, "end": { - "line": 64, - "column": 57 + "line": 103, + "column": 23 } } }, { "type": { - "label": ",", + "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -9197,54 +12263,56 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 1, "updateContext": null }, - "start": 1244, - "end": 1245, + "value": "||", + "start": 2148, + "end": 2150, "loc": { "start": { - "line": 64, - "column": 57 + "line": 103, + "column": 24 }, "end": { - "line": 64, - "column": 58 + "line": 103, + "column": 26 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, "binop": null, "updateContext": null }, - "value": "", - "start": 1246, - "end": 1248, + "value": "typeof", + "start": 2151, + "end": 2157, "loc": { "start": { - "line": 64, - "column": 59 + "line": 103, + "column": 27 }, "end": { - "line": 64, - "column": 61 + "line": 103, + "column": 33 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -9252,22 +12320,23 @@ "postfix": false, "binop": null }, - "start": 1248, - "end": 1249, + "value": "item", + "start": 2158, + "end": 2162, "loc": { "start": { - "line": 64, - "column": 61 + "line": 103, + "column": 34 }, "end": { - "line": 64, - "column": 62 + "line": 103, + "column": 38 } } }, { "type": { - "label": ";", + "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -9275,26 +12344,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 1249, - "end": 1250, + "value": "!==", + "start": 2163, + "end": 2166, "loc": { "start": { - "line": 64, - "column": 62 + "line": 103, + "column": 39 }, "end": { - "line": 64, - "column": 63 + "line": 103, + "column": 42 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "PrimitiveType", + "start": 2167, + "end": 2180, + "loc": { + "start": { + "line": 103, + "column": 43 + }, + "end": { + "line": 103, + "column": 56 + } + } + }, + { + "type": { + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -9305,17 +12400,16 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 1256, - "end": 1261, + "start": 2180, + "end": 2181, "loc": { "start": { - "line": 66, - "column": 4 + "line": 103, + "column": 56 }, "end": { - "line": 66, - "column": 9 + "line": 103, + "column": 57 } } }, @@ -9331,51 +12425,49 @@ "postfix": false, "binop": null }, - "value": "keys", - "start": 1262, - "end": 1266, + "value": "OBJECT", + "start": 2181, + "end": 2187, "loc": { "start": { - "line": 66, - "column": 10 + "line": 103, + "column": 57 }, "end": { - "line": 66, - "column": 14 + "line": 103, + "column": 63 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 1267, - "end": 1268, + "start": 2187, + "end": 2188, "loc": { "start": { - "line": 66, - "column": 15 + "line": 103, + "column": 63 }, "end": { - "line": 66, - "column": 16 + "line": 103, + "column": 64 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -9384,24 +12476,24 @@ "postfix": false, "binop": null }, - "value": "path", - "start": 1269, - "end": 1273, + "start": 2189, + "end": 2190, "loc": { "start": { - "line": 66, - "column": 17 + "line": 103, + "column": 65 }, "end": { - "line": 66, - "column": 21 + "line": 103, + "column": 66 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "return", + "keyword": "return", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -9411,16 +12503,17 @@ "binop": null, "updateContext": null }, - "start": 1273, - "end": 1274, + "value": "return", + "start": 2199, + "end": 2205, "loc": { "start": { - "line": 66, - "column": 21 + "line": 104, + "column": 8 }, "end": { - "line": 66, - "column": 22 + "line": 104, + "column": 14 } } }, @@ -9436,75 +12529,75 @@ "postfix": false, "binop": null }, - "value": "split", - "start": 1274, - "end": 1279, + "value": "item", + "start": 2206, + "end": 2210, "loc": { "start": { - "line": 66, - "column": 22 + "line": 104, + "column": 15 }, "end": { - "line": 66, - "column": 27 + "line": 104, + "column": 19 } } }, { "type": { - "label": "(", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1279, - "end": 1280, + "start": 2210, + "end": 2211, "loc": { "start": { - "line": 66, - "column": 27 + "line": 104, + "column": 19 }, "end": { - "line": 66, - "column": 28 + "line": 104, + "column": 20 } } }, { "type": { - "label": "string", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": ".", - "start": 1280, - "end": 1283, + "start": 2218, + "end": 2219, "loc": { "start": { - "line": 66, - "column": 28 + "line": 105, + "column": 6 }, "end": { - "line": 66, - "column": 31 + "line": 105, + "column": 7 } } }, { "type": { - "label": ")", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -9512,151 +12605,151 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1283, - "end": 1284, + "value": "if", + "start": 2227, + "end": 2229, "loc": { "start": { - "line": 66, - "column": 31 + "line": 107, + "column": 6 }, "end": { - "line": 66, - "column": 32 + "line": 107, + "column": 8 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1284, - "end": 1285, + "start": 2230, + "end": 2231, "loc": { "start": { - "line": 66, - "column": 32 + "line": 107, + "column": 9 }, "end": { - "line": 66, - "column": 33 + "line": 107, + "column": 10 } } }, { "type": { - "label": "for", - "keyword": "for", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, - "isLoop": true, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "for", - "start": 1290, - "end": 1293, + "value": "item", + "start": 2231, + "end": 2235, "loc": { "start": { - "line": 67, - "column": 4 + "line": 107, + "column": 10 }, "end": { - "line": 67, - "column": 7 + "line": 107, + "column": 14 } } }, { "type": { - "label": "(", + "label": "instanceof", + "keyword": "instanceof", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 7, + "updateContext": null }, - "start": 1294, - "end": 1295, + "value": "instanceof", + "start": 2236, + "end": 2246, "loc": { "start": { - "line": 67, - "column": 8 + "line": 107, + "column": 15 }, "end": { - "line": 67, - "column": 9 + "line": 107, + "column": 25 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "let", - "start": 1295, - "end": 1298, + "value": "InstanceType", + "start": 2247, + "end": 2259, "loc": { "start": { - "line": 67, - "column": 9 + "line": 107, + "column": 26 }, "end": { - "line": 67, - "column": 12 + "line": 107, + "column": 38 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "key", - "start": 1299, - "end": 1302, + "start": 2259, + "end": 2260, "loc": { "start": { - "line": 67, - "column": 13 + "line": 107, + "column": 38 }, "end": { - "line": 67, - "column": 16 + "line": 107, + "column": 39 } } }, @@ -9672,25 +12765,25 @@ "postfix": false, "binop": null }, - "value": "of", - "start": 1303, - "end": 1305, + "value": "DATE", + "start": 2260, + "end": 2264, "loc": { "start": { - "line": 67, - "column": 17 + "line": 107, + "column": 39 }, "end": { - "line": 67, - "column": 19 + "line": 107, + "column": 43 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -9698,25 +12791,24 @@ "postfix": false, "binop": null }, - "value": "keys", - "start": 1306, - "end": 1310, + "start": 2264, + "end": 2265, "loc": { "start": { - "line": 67, - "column": 20 + "line": 107, + "column": 43 }, "end": { - "line": 67, - "column": 24 + "line": 107, + "column": 44 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -9724,50 +12816,53 @@ "postfix": false, "binop": null }, - "start": 1310, - "end": 1311, + "start": 2266, + "end": 2267, "loc": { "start": { - "line": 67, - "column": 24 + "line": 107, + "column": 45 }, "end": { - "line": 67, - "column": 25 + "line": 107, + "column": 46 } } }, { "type": { - "label": "{", + "label": "return", + "keyword": "return", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1312, - "end": 1313, + "value": "return", + "start": 2276, + "end": 2282, "loc": { "start": { - "line": 67, - "column": 26 + "line": 108, + "column": 8 }, "end": { - "line": 67, - "column": 27 + "line": 108, + "column": 14 } } }, { "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -9776,24 +12871,24 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 1320, - "end": 1322, + "value": "new", + "start": 2283, + "end": 2286, "loc": { "start": { - "line": 68, - "column": 6 + "line": 108, + "column": 15 }, "end": { - "line": 68, - "column": 8 + "line": 108, + "column": 18 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -9802,44 +12897,42 @@ "postfix": false, "binop": null }, - "start": 1323, - "end": 1324, + "value": "Date", + "start": 2287, + "end": 2291, "loc": { "start": { - "line": 68, - "column": 9 + "line": 108, + "column": 19 }, "end": { - "line": 68, - "column": 10 + "line": 108, + "column": 23 } } }, { "type": { - "label": "typeof", - "keyword": "typeof", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "typeof", - "start": 1324, - "end": 1330, + "start": 2291, + "end": 2292, "loc": { "start": { - "line": 68, - "column": 10 + "line": 108, + "column": 23 }, "end": { - "line": 68, - "column": 16 + "line": 108, + "column": 24 } } }, @@ -9856,43 +12949,42 @@ "binop": null }, "value": "item", - "start": 1331, - "end": 1335, + "start": 2292, + "end": 2296, "loc": { "start": { - "line": 68, - "column": 17 + "line": 108, + "column": 24 }, "end": { - "line": 68, - "column": 21 + "line": 108, + "column": 28 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 1336, - "end": 1339, + "start": 2296, + "end": 2297, "loc": { "start": { - "line": 68, - "column": 22 + "line": 108, + "column": 28 }, "end": { - "line": 68, - "column": 25 + "line": 108, + "column": 29 } } }, @@ -9908,51 +13000,50 @@ "postfix": false, "binop": null }, - "value": "PrimitiveType", - "start": 1340, - "end": 1353, + "value": "valueOf", + "start": 2297, + "end": 2304, "loc": { "start": { - "line": 68, - "column": 26 + "line": 108, + "column": 29 }, "end": { - "line": 68, - "column": 39 + "line": 108, + "column": 36 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1353, - "end": 1354, + "start": 2304, + "end": 2305, "loc": { "start": { - "line": 68, - "column": 39 + "line": 108, + "column": 36 }, "end": { - "line": 68, - "column": 40 + "line": 108, + "column": 37 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -9960,132 +13051,128 @@ "postfix": false, "binop": null }, - "value": "OBJECT", - "start": 1354, - "end": 1360, + "start": 2305, + "end": 2306, "loc": { "start": { - "line": 68, - "column": 40 + "line": 108, + "column": 37 }, "end": { - "line": 68, - "column": 46 + "line": 108, + "column": 38 } } }, { "type": { - "label": "&&", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, - "updateContext": null + "binop": null }, - "value": "&&", - "start": 1361, - "end": 1363, + "start": 2306, + "end": 2307, "loc": { "start": { - "line": 68, - "column": 47 + "line": 108, + "column": 38 }, "end": { - "line": 68, - "column": 49 + "line": 108, + "column": 39 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "key", - "start": 1364, - "end": 1367, + "start": 2307, + "end": 2308, "loc": { "start": { - "line": 68, - "column": 50 + "line": 108, + "column": 39 }, "end": { - "line": 68, - "column": 53 + "line": 108, + "column": 40 } } }, { "type": { - "label": "in", - "keyword": "in", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, - "updateContext": null + "binop": null }, - "value": "in", - "start": 1368, - "end": 1370, + "start": 2315, + "end": 2316, "loc": { "start": { - "line": 68, - "column": 54 + "line": 109, + "column": 6 }, "end": { - "line": 68, - "column": 56 + "line": 109, + "column": 7 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "item", - "start": 1371, - "end": 1375, + "value": "if", + "start": 2324, + "end": 2326, "loc": { "start": { - "line": 68, - "column": 57 + "line": 111, + "column": 6 }, "end": { - "line": 68, - "column": 61 + "line": 111, + "column": 8 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -10093,16 +13180,16 @@ "postfix": false, "binop": null }, - "start": 1375, - "end": 1376, + "start": 2327, + "end": 2328, "loc": { "start": { - "line": 68, - "column": 61 + "line": 111, + "column": 9 }, - "end": { - "line": 68, - "column": 62 + "end": { + "line": 111, + "column": 10 } } }, @@ -10119,43 +13206,44 @@ "binop": null }, "value": "item", - "start": 1377, - "end": 1381, + "start": 2328, + "end": 2332, "loc": { "start": { - "line": 68, - "column": 63 + "line": 111, + "column": 10 }, "end": { - "line": 68, - "column": 67 + "line": 111, + "column": 14 } } }, { "type": { - "label": "=", + "label": "instanceof", + "keyword": "instanceof", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 7, "updateContext": null }, - "value": "=", - "start": 1382, - "end": 1383, + "value": "instanceof", + "start": 2333, + "end": 2343, "loc": { "start": { - "line": 68, - "column": 68 + "line": 111, + "column": 15 }, "end": { - "line": 68, - "column": 69 + "line": 111, + "column": 25 } } }, @@ -10171,25 +13259,25 @@ "postfix": false, "binop": null }, - "value": "item", - "start": 1384, - "end": 1388, + "value": "InstanceType", + "start": 2344, + "end": 2356, "loc": { "start": { - "line": 68, - "column": 70 + "line": 111, + "column": 26 }, "end": { - "line": 68, - "column": 74 + "line": 111, + "column": 38 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -10198,16 +13286,16 @@ "binop": null, "updateContext": null }, - "start": 1388, - "end": 1389, + "start": 2356, + "end": 2357, "loc": { "start": { - "line": 68, - "column": 74 + "line": 111, + "column": 38 }, "end": { - "line": 68, - "column": 75 + "line": 111, + "column": 39 } } }, @@ -10223,23 +13311,23 @@ "postfix": false, "binop": null }, - "value": "key", - "start": 1389, - "end": 1392, + "value": "ARRAY", + "start": 2357, + "end": 2362, "loc": { "start": { - "line": 68, - "column": 75 + "line": 111, + "column": 39 }, "end": { - "line": 68, - "column": 78 + "line": 111, + "column": 44 } } }, { "type": { - "label": "]", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -10247,53 +13335,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1392, - "end": 1393, + "start": 2362, + "end": 2363, "loc": { "start": { - "line": 68, - "column": 78 + "line": 111, + "column": 44 }, "end": { - "line": 68, - "column": 79 + "line": 111, + "column": 45 } } }, { "type": { - "label": ";", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1393, - "end": 1394, + "start": 2364, + "end": 2365, "loc": { "start": { - "line": 68, - "column": 79 + "line": 111, + "column": 46 }, "end": { - "line": 68, - "column": 80 + "line": 111, + "column": 47 } } }, { "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -10303,53 +13389,78 @@ "binop": null, "updateContext": null }, - "value": "else", - "start": 1394, - "end": 1398, + "value": "let", + "start": 2374, + "end": 2377, "loc": { "start": { - "line": 68, - "column": 80 + "line": 112, + "column": 8 }, "end": { - "line": 68, - "column": 84 + "line": 112, + "column": 11 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "copy", + "start": 2378, + "end": 2382, + "loc": { + "start": { + "line": 112, + "column": 12 + }, + "end": { + "line": 112, + "column": 16 + } + } + }, + { + "type": { + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "return", - "start": 1399, - "end": 1405, + "value": "=", + "start": 2383, + "end": 2384, "loc": { "start": { - "line": 68, - "column": 85 + "line": 112, + "column": 17 }, "end": { - "line": 68, - "column": 91 + "line": 112, + "column": 18 } } }, { "type": { - "label": ";", + "label": "[", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -10358,22 +13469,22 @@ "binop": null, "updateContext": null }, - "start": 1405, - "end": 1406, + "start": 2385, + "end": 2386, "loc": { "start": { - "line": 68, - "column": 91 + "line": 112, + "column": 19 }, "end": { - "line": 68, - "column": 92 + "line": 112, + "column": 20 } } }, { "type": { - "label": "}", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -10381,25 +13492,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1411, - "end": 1412, + "start": 2386, + "end": 2387, "loc": { "start": { - "line": 69, - "column": 4 + "line": 112, + "column": 20 }, "end": { - "line": 69, - "column": 5 + "line": 112, + "column": 21 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -10410,17 +13521,16 @@ "binop": null, "updateContext": null }, - "value": "return", - "start": 1417, - "end": 1423, + "start": 2387, + "end": 2388, "loc": { "start": { - "line": 70, - "column": 4 + "line": 112, + "column": 21 }, "end": { - "line": 70, - "column": 10 + "line": 112, + "column": 22 } } }, @@ -10437,23 +13547,23 @@ "binop": null }, "value": "item", - "start": 1424, - "end": 1428, + "start": 2398, + "end": 2402, "loc": { "start": { - "line": 70, - "column": 11 + "line": 114, + "column": 8 }, "end": { - "line": 70, - "column": 15 + "line": 114, + "column": 12 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -10463,24 +13573,24 @@ "binop": null, "updateContext": null }, - "start": 1428, - "end": 1429, + "start": 2402, + "end": 2403, "loc": { "start": { - "line": 70, - "column": 15 + "line": 114, + "column": 12 }, "end": { - "line": 70, - "column": 16 + "line": 114, + "column": 13 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -10488,55 +13598,24 @@ "postfix": false, "binop": null }, - "start": 1432, - "end": 1433, - "loc": { - "start": { - "line": 71, - "column": 2 - }, - "end": { - "line": 71, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @public\n *\n * @desc Deep clone an Object\n *\n * @param {Config} [config={}] Configuration object\n * @returns {object} Deep cloned Object\n *\n * @example\n *\n * const obj = new SuperObject({ key1: [\"1\", 1, true, (a, b) => a+b], [Symbol(\"key2\")]: {s: \"s\"} });\n * const clone = obj.clone();\n *\n * console.log(clone);\n * // { key1: [\"1\", 1, true, (a, b) => a+b], Symbol(\"key2\"): {s: \"s\"} }\n *\n ", - "start": 1437, - "end": 1865, - "loc": { - "start": { - "line": 73, - "column": 2 - }, - "end": { - "line": 89, - "column": 5 - } - } - }, - { - "type": "CommentLine", - "value": " $FlowFixMe", - "start": 1868, - "end": 1881, + "value": "forEach", + "start": 2403, + "end": 2410, "loc": { "start": { - "line": 90, - "column": 2 + "line": 114, + "column": 13 }, "end": { - "line": 90, - "column": 15 + "line": 114, + "column": 20 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -10545,17 +13624,16 @@ "postfix": false, "binop": null }, - "value": "clone", - "start": 1884, - "end": 1889, + "start": 2410, + "end": 2411, "loc": { "start": { - "line": 91, - "column": 2 + "line": 114, + "column": 20 }, "end": { - "line": 91, - "column": 7 + "line": 114, + "column": 21 } } }, @@ -10571,16 +13649,16 @@ "postfix": false, "binop": null }, - "start": 1889, - "end": 1890, + "start": 2411, + "end": 2412, "loc": { "start": { - "line": 91, - "column": 7 + "line": 114, + "column": 21 }, "end": { - "line": 91, - "column": 8 + "line": 114, + "column": 22 } } }, @@ -10596,51 +13674,50 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 1890, - "end": 1896, + "value": "_", + "start": 2412, + "end": 2413, "loc": { "start": { - "line": 91, - "column": 8 + "line": 114, + "column": 22 }, "end": { - "line": 91, - "column": 14 + "line": 114, + "column": 23 } } }, { "type": { - "label": "=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 1897, - "end": 1898, + "start": 2413, + "end": 2414, "loc": { "start": { - "line": 91, - "column": 15 + "line": 114, + "column": 23 }, "end": { - "line": 91, - "column": 16 + "line": 114, + "column": 24 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -10649,22 +13726,23 @@ "postfix": false, "binop": null }, - "start": 1899, - "end": 1900, + "value": "i", + "start": 2415, + "end": 2416, "loc": { "start": { - "line": 91, - "column": 17 + "line": 114, + "column": 25 }, "end": { - "line": 91, - "column": 18 + "line": 114, + "column": 26 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -10674,48 +13752,49 @@ "postfix": false, "binop": null }, - "start": 1900, - "end": 1901, + "start": 2416, + "end": 2417, "loc": { "start": { - "line": 91, - "column": 18 + "line": 114, + "column": 26 }, "end": { - "line": 91, - "column": 19 + "line": 114, + "column": 27 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1901, - "end": 1902, + "start": 2418, + "end": 2420, "loc": { "start": { - "line": 91, - "column": 19 + "line": 114, + "column": 28 }, "end": { - "line": 91, - "column": 20 + "line": 114, + "column": 30 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -10724,25 +13803,25 @@ "postfix": false, "binop": null }, - "start": 1903, - "end": 1904, + "value": "copy", + "start": 2421, + "end": 2425, "loc": { "start": { - "line": 91, - "column": 21 + "line": 114, + "column": 31 }, "end": { - "line": 91, - "column": 22 + "line": 114, + "column": 35 } } }, { "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -10751,24 +13830,23 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 1909, - "end": 1914, + "start": 2425, + "end": 2426, "loc": { "start": { - "line": 92, - "column": 4 + "line": 114, + "column": 35 }, "end": { - "line": 92, - "column": 9 + "line": 114, + "column": 36 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -10777,105 +13855,129 @@ "postfix": false, "binop": null }, - "start": 1915, - "end": 1916, + "value": "i", + "start": 2426, + "end": 2427, "loc": { "start": { - "line": 92, - "column": 10 + "line": 114, + "column": 36 }, "end": { - "line": 92, - "column": 11 + "line": 114, + "column": 37 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "includeNonEnumerable", - "start": 1917, - "end": 1937, + "start": 2427, + "end": 2428, + "loc": { + "start": { + "line": 114, + "column": 37 + }, + "end": { + "line": 114, + "column": 38 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2429, + "end": 2430, "loc": { "start": { - "line": 92, - "column": 12 + "line": 114, + "column": 39 }, "end": { - "line": 92, - "column": 32 + "line": 114, + "column": 40 } } }, { "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 1938, - "end": 1939, + "value": "_clone", + "start": 2431, + "end": 2437, "loc": { "start": { - "line": 92, - "column": 33 + "line": 114, + "column": 41 }, "end": { - "line": 92, - "column": 34 + "line": 114, + "column": 47 } } }, { "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "false", - "start": 1940, - "end": 1945, + "start": 2437, + "end": 2438, "loc": { "start": { - "line": 92, - "column": 35 + "line": 114, + "column": 47 }, "end": { - "line": 92, - "column": 40 + "line": 114, + "column": 48 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -10883,43 +13985,43 @@ "postfix": false, "binop": null }, - "start": 1946, - "end": 1947, + "value": "item", + "start": 2438, + "end": 2442, "loc": { "start": { - "line": 92, - "column": 41 + "line": 114, + "column": 48 }, "end": { - "line": 92, - "column": 42 + "line": 114, + "column": 52 } } }, { "type": { - "label": "=", + "label": "[", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 1948, - "end": 1949, + "start": 2442, + "end": 2443, "loc": { "start": { - "line": 92, - "column": 43 + "line": 114, + "column": 52 }, "end": { - "line": 92, - "column": 44 + "line": 114, + "column": 53 } } }, @@ -10935,24 +14037,24 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 1950, - "end": 1956, + "value": "i", + "start": 2443, + "end": 2444, "loc": { "start": { - "line": 92, - "column": 45 + "line": 114, + "column": 53 }, "end": { - "line": 92, - "column": 51 + "line": 114, + "column": 54 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -10962,41 +14064,49 @@ "binop": null, "updateContext": null }, - "start": 1956, - "end": 1957, + "start": 2444, + "end": 2445, "loc": { "start": { - "line": 92, - "column": 51 + "line": 114, + "column": 54 }, "end": { - "line": 92, - "column": 52 + "line": 114, + "column": 55 } } }, { - "type": "CommentBlock", - "value": "*\n * @private\n *\n * @desc Deep clone helper\n *\n * @param {Item} item\n * @returns {any} cloned item\n ", - "start": 1963, - "end": 2095, + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2445, + "end": 2446, "loc": { "start": { - "line": 94, - "column": 4 + "line": 114, + "column": 55 }, "end": { - "line": 101, - "column": 7 + "line": 114, + "column": 56 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -11004,68 +14114,70 @@ "postfix": false, "binop": null }, - "value": "function", - "start": 2100, - "end": 2108, + "start": 2446, + "end": 2447, "loc": { "start": { - "line": 102, - "column": 4 + "line": 114, + "column": 56 }, "end": { - "line": 102, - "column": 12 + "line": 114, + "column": 57 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "_clone", - "start": 2109, - "end": 2115, + "start": 2447, + "end": 2448, "loc": { "start": { - "line": 102, - "column": 13 + "line": 114, + "column": 57 }, "end": { - "line": 102, - "column": 19 + "line": 114, + "column": 58 } } }, { "type": { - "label": "(", + "label": "return", + "keyword": "return", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2115, - "end": 2116, + "value": "return", + "start": 2458, + "end": 2464, "loc": { "start": { - "line": 102, - "column": 19 + "line": 116, + "column": 8 }, "end": { - "line": 102, - "column": 20 + "line": 116, + "column": 14 } } }, @@ -11081,50 +14193,51 @@ "postfix": false, "binop": null }, - "value": "item", - "start": 2116, - "end": 2120, + "value": "copy", + "start": 2465, + "end": 2469, "loc": { "start": { - "line": 102, - "column": 20 + "line": 116, + "column": 15 }, "end": { - "line": 102, - "column": 24 + "line": 116, + "column": 19 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2120, - "end": 2121, + "start": 2469, + "end": 2470, "loc": { "start": { - "line": 102, - "column": 24 + "line": 116, + "column": 19 }, "end": { - "line": 102, - "column": 25 + "line": 116, + "column": 20 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -11132,16 +14245,16 @@ "postfix": false, "binop": null }, - "start": 2122, - "end": 2123, + "start": 2477, + "end": 2478, "loc": { "start": { - "line": 102, - "column": 26 + "line": 117, + "column": 6 }, "end": { - "line": 102, - "column": 27 + "line": 117, + "column": 7 } } }, @@ -11160,15 +14273,15 @@ "updateContext": null }, "value": "if", - "start": 2130, - "end": 2132, + "start": 2486, + "end": 2488, "loc": { "start": { - "line": 103, + "line": 119, "column": 6 }, "end": { - "line": 103, + "line": 119, "column": 8 } } @@ -11185,15 +14298,15 @@ "postfix": false, "binop": null }, - "start": 2133, - "end": 2134, + "start": 2489, + "end": 2490, "loc": { "start": { - "line": 103, + "line": 119, "column": 9 }, "end": { - "line": 103, + "line": 119, "column": 10 } } @@ -11211,22 +14324,23 @@ "binop": null }, "value": "item", - "start": 2134, - "end": 2138, + "start": 2490, + "end": 2494, "loc": { "start": { - "line": 103, + "line": 119, "column": 10 }, "end": { - "line": 103, + "line": 119, "column": 14 } } }, { "type": { - "label": "==/!=", + "label": "instanceof", + "keyword": "instanceof", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -11234,27 +14348,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": 7, "updateContext": null }, - "value": "===", - "start": 2139, - "end": 2142, + "value": "instanceof", + "start": 2495, + "end": 2505, "loc": { "start": { - "line": 103, + "line": 119, "column": 15 }, "end": { - "line": 103, - "column": 18 + "line": 119, + "column": 25 } } }, { "type": { - "label": "null", - "keyword": "null", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -11262,75 +14375,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "null", - "start": 2143, - "end": 2147, + "value": "InstanceType", + "start": 2506, + "end": 2518, "loc": { "start": { - "line": 103, - "column": 19 + "line": 119, + "column": 26 }, "end": { - "line": 103, - "column": 23 + "line": 119, + "column": 38 } } }, { "type": { - "label": "||", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 2148, - "end": 2150, - "loc": { - "start": { - "line": 103, - "column": 24 - }, - "end": { - "line": 103, - "column": 26 - } - } - }, - { - "type": { - "label": "typeof", - "keyword": "typeof", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, "binop": null, "updateContext": null }, - "value": "typeof", - "start": 2151, - "end": 2157, + "start": 2518, + "end": 2519, "loc": { "start": { - "line": 103, - "column": 27 + "line": 119, + "column": 38 }, "end": { - "line": 103, - "column": 33 + "line": 119, + "column": 39 } } }, @@ -11346,51 +14429,49 @@ "postfix": false, "binop": null }, - "value": "item", - "start": 2158, - "end": 2162, + "value": "SET", + "start": 2519, + "end": 2522, "loc": { "start": { - "line": 103, - "column": 34 + "line": 119, + "column": 39 }, "end": { - "line": 103, - "column": 38 + "line": 119, + "column": 42 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, - "updateContext": null + "binop": null }, - "value": "!==", - "start": 2163, - "end": 2166, + "start": 2522, + "end": 2523, "loc": { "start": { - "line": 103, - "column": 39 + "line": 119, + "column": 42 }, "end": { - "line": 103, - "column": 42 + "line": 119, + "column": 43 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -11399,23 +14480,23 @@ "postfix": false, "binop": null }, - "value": "PrimitiveType", - "start": 2167, - "end": 2180, + "start": 2524, + "end": 2525, "loc": { "start": { - "line": 103, - "column": 43 + "line": 119, + "column": 44 }, "end": { - "line": 103, - "column": 56 + "line": 119, + "column": 45 } } }, { "type": { - "label": ".", + "label": "let", + "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -11426,16 +14507,17 @@ "binop": null, "updateContext": null }, - "start": 2180, - "end": 2181, + "value": "let", + "start": 2534, + "end": 2537, "loc": { "start": { - "line": 103, - "column": 56 + "line": 120, + "column": 8 }, "end": { - "line": 103, - "column": 57 + "line": 120, + "column": 11 } } }, @@ -11451,48 +14533,51 @@ "postfix": false, "binop": null }, - "value": "OBJECT", - "start": 2181, - "end": 2187, + "value": "copy", + "start": 2538, + "end": 2542, "loc": { "start": { - "line": 103, - "column": 57 + "line": 120, + "column": 12 }, "end": { - "line": 103, - "column": 63 + "line": 120, + "column": 16 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2187, - "end": 2188, + "value": "=", + "start": 2543, + "end": 2544, "loc": { "start": { - "line": 103, - "column": 63 + "line": 120, + "column": 17 }, "end": { - "line": 103, - "column": 64 + "line": 120, + "column": 18 } } }, { "type": { - "label": "{", + "label": "new", + "keyword": "new", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -11500,53 +14585,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2189, - "end": 2190, + "value": "new", + "start": 2545, + "end": 2548, "loc": { "start": { - "line": 103, - "column": 65 + "line": 120, + "column": 19 }, "end": { - "line": 103, - "column": 66 + "line": 120, + "column": 22 } } }, { "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "return", - "start": 2199, - "end": 2205, + "value": "Set", + "start": 2549, + "end": 2552, "loc": { "start": { - "line": 104, - "column": 8 + "line": 120, + "column": 23 }, "end": { - "line": 104, - "column": 14 + "line": 120, + "column": 26 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -11555,121 +14640,119 @@ "postfix": false, "binop": null }, - "value": "item", - "start": 2206, - "end": 2210, + "start": 2552, + "end": 2553, "loc": { "start": { - "line": 104, - "column": 15 + "line": 120, + "column": 26 }, "end": { - "line": 104, - "column": 19 + "line": 120, + "column": 27 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2210, - "end": 2211, + "start": 2553, + "end": 2554, "loc": { "start": { - "line": 104, - "column": 19 + "line": 120, + "column": 27 }, "end": { - "line": 104, - "column": 20 + "line": 120, + "column": 28 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2218, - "end": 2219, + "start": 2554, + "end": 2555, "loc": { "start": { - "line": 105, - "column": 6 + "line": 120, + "column": 28 }, "end": { - "line": 105, - "column": 7 + "line": 120, + "column": 29 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 2227, - "end": 2229, + "value": "item", + "start": 2565, + "end": 2569, "loc": { "start": { - "line": 107, - "column": 6 + "line": 122, + "column": 8 }, "end": { - "line": 107, - "column": 8 + "line": 122, + "column": 12 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2230, - "end": 2231, + "start": 2569, + "end": 2570, "loc": { "start": { - "line": 107, - "column": 9 + "line": 122, + "column": 12 }, "end": { - "line": 107, - "column": 10 + "line": 122, + "column": 13 } } }, @@ -11685,45 +14768,42 @@ "postfix": false, "binop": null }, - "value": "item", - "start": 2231, - "end": 2235, + "value": "forEach", + "start": 2570, + "end": 2577, "loc": { "start": { - "line": 107, - "column": 10 + "line": 122, + "column": 13 }, "end": { - "line": 107, - "column": 14 + "line": 122, + "column": 20 } } }, { "type": { - "label": "instanceof", - "keyword": "instanceof", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, - "updateContext": null + "binop": null }, - "value": "instanceof", - "start": 2236, - "end": 2246, + "start": 2577, + "end": 2578, "loc": { "start": { - "line": 107, - "column": 15 + "line": 122, + "column": 20 }, "end": { - "line": 107, - "column": 25 + "line": 122, + "column": 21 } } }, @@ -11739,24 +14819,24 @@ "postfix": false, "binop": null }, - "value": "InstanceType", - "start": 2247, - "end": 2259, + "value": "v", + "start": 2578, + "end": 2579, "loc": { "start": { - "line": 107, - "column": 26 + "line": 122, + "column": 21 }, "end": { - "line": 107, - "column": 38 + "line": 122, + "column": 22 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -11766,16 +14846,16 @@ "binop": null, "updateContext": null }, - "start": 2259, - "end": 2260, + "start": 2580, + "end": 2582, "loc": { "start": { - "line": 107, - "column": 38 + "line": 122, + "column": 23 }, "end": { - "line": 107, - "column": 39 + "line": 122, + "column": 25 } } }, @@ -11791,23 +14871,23 @@ "postfix": false, "binop": null }, - "value": "DATE", - "start": 2260, - "end": 2264, + "value": "copy", + "start": 2583, + "end": 2587, "loc": { "start": { - "line": 107, - "column": 39 + "line": 122, + "column": 26 }, "end": { - "line": 107, - "column": 43 + "line": 122, + "column": 30 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -11815,25 +14895,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2264, - "end": 2265, + "start": 2587, + "end": 2588, "loc": { "start": { - "line": 107, - "column": 43 + "line": 122, + "column": 30 }, "end": { - "line": 107, - "column": 44 + "line": 122, + "column": 31 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -11842,79 +14923,75 @@ "postfix": false, "binop": null }, - "start": 2266, - "end": 2267, + "value": "add", + "start": 2588, + "end": 2591, "loc": { "start": { - "line": 107, - "column": 45 + "line": 122, + "column": 31 }, "end": { - "line": 107, - "column": 46 + "line": 122, + "column": 34 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "return", - "start": 2276, - "end": 2282, + "start": 2591, + "end": 2592, "loc": { "start": { - "line": 108, - "column": 8 + "line": 122, + "column": 34 }, "end": { - "line": 108, - "column": 14 + "line": 122, + "column": 35 } } }, { "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "new", - "start": 2283, - "end": 2286, + "value": "_clone", + "start": 2592, + "end": 2598, "loc": { "start": { - "line": 108, - "column": 15 + "line": 122, + "column": 35 }, "end": { - "line": 108, - "column": 18 + "line": 122, + "column": 41 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -11923,24 +15000,23 @@ "postfix": false, "binop": null }, - "value": "Date", - "start": 2287, - "end": 2291, + "start": 2598, + "end": 2599, "loc": { "start": { - "line": 108, - "column": 19 + "line": 122, + "column": 41 }, "end": { - "line": 108, - "column": 23 + "line": 122, + "column": 42 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -11949,24 +15025,25 @@ "postfix": false, "binop": null }, - "start": 2291, - "end": 2292, + "value": "v", + "start": 2599, + "end": 2600, "loc": { "start": { - "line": 108, - "column": 23 + "line": 122, + "column": 42 }, "end": { - "line": 108, - "column": 24 + "line": 122, + "column": 43 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -11974,23 +15051,22 @@ "postfix": false, "binop": null }, - "value": "item", - "start": 2292, - "end": 2296, + "start": 2600, + "end": 2601, "loc": { "start": { - "line": 108, - "column": 24 + "line": 122, + "column": 43 }, "end": { - "line": 108, - "column": 28 + "line": 122, + "column": 44 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -11998,27 +15074,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2296, - "end": 2297, + "start": 2601, + "end": 2602, "loc": { "start": { - "line": 108, - "column": 28 + "line": 122, + "column": 44 }, "end": { - "line": 108, - "column": 29 + "line": 122, + "column": 45 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -12026,75 +15101,78 @@ "postfix": false, "binop": null }, - "value": "valueOf", - "start": 2297, - "end": 2304, + "start": 2602, + "end": 2603, "loc": { "start": { - "line": 108, - "column": 29 + "line": 122, + "column": 45 }, "end": { - "line": 108, - "column": 36 + "line": 122, + "column": 46 } } }, { "type": { - "label": "(", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2304, - "end": 2305, + "start": 2603, + "end": 2604, "loc": { "start": { - "line": 108, - "column": 36 + "line": 122, + "column": 46 }, "end": { - "line": 108, - "column": 37 + "line": 122, + "column": 47 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "return", + "keyword": "return", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2305, - "end": 2306, + "value": "return", + "start": 2614, + "end": 2620, "loc": { "start": { - "line": 108, - "column": 37 + "line": 124, + "column": 8 }, "end": { - "line": 108, - "column": 38 + "line": 124, + "column": 14 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -12102,16 +15180,17 @@ "postfix": false, "binop": null }, - "start": 2306, - "end": 2307, + "value": "copy", + "start": 2621, + "end": 2625, "loc": { "start": { - "line": 108, - "column": 38 + "line": 124, + "column": 15 }, "end": { - "line": 108, - "column": 39 + "line": 124, + "column": 19 } } }, @@ -12128,16 +15207,16 @@ "binop": null, "updateContext": null }, - "start": 2307, - "end": 2308, + "start": 2625, + "end": 2626, "loc": { "start": { - "line": 108, - "column": 39 + "line": 124, + "column": 19 }, "end": { - "line": 108, - "column": 40 + "line": 124, + "column": 20 } } }, @@ -12153,15 +15232,15 @@ "postfix": false, "binop": null }, - "start": 2315, - "end": 2316, + "start": 2633, + "end": 2634, "loc": { "start": { - "line": 109, + "line": 125, "column": 6 }, "end": { - "line": 109, + "line": 125, "column": 7 } } @@ -12181,15 +15260,15 @@ "updateContext": null }, "value": "if", - "start": 2324, - "end": 2326, + "start": 2642, + "end": 2644, "loc": { "start": { - "line": 111, + "line": 127, "column": 6 }, "end": { - "line": 111, + "line": 127, "column": 8 } } @@ -12206,15 +15285,15 @@ "postfix": false, "binop": null }, - "start": 2327, - "end": 2328, + "start": 2645, + "end": 2646, "loc": { "start": { - "line": 111, + "line": 127, "column": 9 }, "end": { - "line": 111, + "line": 127, "column": 10 } } @@ -12232,15 +15311,15 @@ "binop": null }, "value": "item", - "start": 2328, - "end": 2332, + "start": 2646, + "end": 2650, "loc": { "start": { - "line": 111, + "line": 127, "column": 10 }, "end": { - "line": 111, + "line": 127, "column": 14 } } @@ -12260,15 +15339,15 @@ "updateContext": null }, "value": "instanceof", - "start": 2333, - "end": 2343, + "start": 2651, + "end": 2661, "loc": { "start": { - "line": 111, + "line": 127, "column": 15 }, "end": { - "line": 111, + "line": 127, "column": 25 } } @@ -12286,15 +15365,15 @@ "binop": null }, "value": "InstanceType", - "start": 2344, - "end": 2356, + "start": 2662, + "end": 2674, "loc": { "start": { - "line": 111, + "line": 127, "column": 26 }, "end": { - "line": 111, + "line": 127, "column": 38 } } @@ -12312,15 +15391,15 @@ "binop": null, "updateContext": null }, - "start": 2356, - "end": 2357, + "start": 2674, + "end": 2675, "loc": { "start": { - "line": 111, + "line": 127, "column": 38 }, "end": { - "line": 111, + "line": 127, "column": 39 } } @@ -12337,17 +15416,17 @@ "postfix": false, "binop": null }, - "value": "ARRAY", - "start": 2357, - "end": 2362, + "value": "MAP", + "start": 2675, + "end": 2678, "loc": { "start": { - "line": 111, + "line": 127, "column": 39 }, "end": { - "line": 111, - "column": 44 + "line": 127, + "column": 42 } } }, @@ -12363,16 +15442,16 @@ "postfix": false, "binop": null }, - "start": 2362, - "end": 2363, + "start": 2678, + "end": 2679, "loc": { "start": { - "line": 111, - "column": 44 + "line": 127, + "column": 42 }, "end": { - "line": 111, - "column": 45 + "line": 127, + "column": 43 } } }, @@ -12388,16 +15467,16 @@ "postfix": false, "binop": null }, - "start": 2364, - "end": 2365, + "start": 2680, + "end": 2681, "loc": { "start": { - "line": 111, - "column": 46 + "line": 127, + "column": 44 }, "end": { - "line": 111, - "column": 47 + "line": 127, + "column": 45 } } }, @@ -12416,15 +15495,15 @@ "updateContext": null }, "value": "let", - "start": 2374, - "end": 2377, + "start": 2690, + "end": 2693, "loc": { "start": { - "line": 112, + "line": 128, "column": 8 }, "end": { - "line": 112, + "line": 128, "column": 11 } } @@ -12442,15 +15521,15 @@ "binop": null }, "value": "copy", - "start": 2378, - "end": 2382, + "start": 2694, + "end": 2698, "loc": { "start": { - "line": 112, + "line": 128, "column": 12 }, "end": { - "line": 112, + "line": 128, "column": 16 } } @@ -12469,22 +15548,23 @@ "updateContext": null }, "value": "=", - "start": 2383, - "end": 2384, + "start": 2699, + "end": 2700, "loc": { "start": { - "line": 112, + "line": 128, "column": 17 }, "end": { - "line": 112, + "line": 128, "column": 18 } } }, { "type": { - "label": "[", + "label": "new", + "keyword": "new", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -12495,22 +15575,74 @@ "binop": null, "updateContext": null }, - "start": 2385, - "end": 2386, + "value": "new", + "start": 2701, + "end": 2704, "loc": { "start": { - "line": 112, + "line": 128, "column": 19 }, "end": { - "line": 112, - "column": 20 + "line": 128, + "column": 22 } } }, { "type": { - "label": "]", + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Map", + "start": 2705, + "end": 2708, + "loc": { + "start": { + "line": 128, + "column": 23 + }, + "end": { + "line": 128, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2708, + "end": 2709, + "loc": { + "start": { + "line": 128, + "column": 26 + }, + "end": { + "line": 128, + "column": 27 + } + } + }, + { + "type": { + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -12518,19 +15650,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2386, - "end": 2387, + "start": 2709, + "end": 2710, "loc": { "start": { - "line": 112, - "column": 20 + "line": 128, + "column": 27 }, "end": { - "line": 112, - "column": 21 + "line": 128, + "column": 28 } } }, @@ -12547,16 +15678,16 @@ "binop": null, "updateContext": null }, - "start": 2387, - "end": 2388, + "start": 2710, + "end": 2711, "loc": { "start": { - "line": 112, - "column": 21 + "line": 128, + "column": 28 }, - "end": { - "line": 112, - "column": 22 + "end": { + "line": 128, + "column": 29 } } }, @@ -12573,15 +15704,15 @@ "binop": null }, "value": "item", - "start": 2398, - "end": 2402, + "start": 2721, + "end": 2725, "loc": { "start": { - "line": 114, + "line": 130, "column": 8 }, "end": { - "line": 114, + "line": 130, "column": 12 } } @@ -12599,15 +15730,15 @@ "binop": null, "updateContext": null }, - "start": 2402, - "end": 2403, + "start": 2725, + "end": 2726, "loc": { "start": { - "line": 114, + "line": 130, "column": 12 }, "end": { - "line": 114, + "line": 130, "column": 13 } } @@ -12625,15 +15756,15 @@ "binop": null }, "value": "forEach", - "start": 2403, - "end": 2410, + "start": 2726, + "end": 2733, "loc": { "start": { - "line": 114, + "line": 130, "column": 13 }, "end": { - "line": 114, + "line": 130, "column": 20 } } @@ -12650,15 +15781,15 @@ "postfix": false, "binop": null }, - "start": 2410, - "end": 2411, + "start": 2733, + "end": 2734, "loc": { "start": { - "line": 114, + "line": 130, "column": 20 }, "end": { - "line": 114, + "line": 130, "column": 21 } } @@ -12675,15 +15806,15 @@ "postfix": false, "binop": null }, - "start": 2411, - "end": 2412, + "start": 2734, + "end": 2735, "loc": { "start": { - "line": 114, + "line": 130, "column": 21 }, "end": { - "line": 114, + "line": 130, "column": 22 } } @@ -12700,16 +15831,16 @@ "postfix": false, "binop": null }, - "value": "_", - "start": 2412, - "end": 2413, + "value": "v", + "start": 2735, + "end": 2736, "loc": { "start": { - "line": 114, + "line": 130, "column": 22 }, "end": { - "line": 114, + "line": 130, "column": 23 } } @@ -12727,15 +15858,15 @@ "binop": null, "updateContext": null }, - "start": 2413, - "end": 2414, + "start": 2736, + "end": 2737, "loc": { "start": { - "line": 114, + "line": 130, "column": 23 }, "end": { - "line": 114, + "line": 130, "column": 24 } } @@ -12752,16 +15883,16 @@ "postfix": false, "binop": null }, - "value": "i", - "start": 2415, - "end": 2416, + "value": "k", + "start": 2738, + "end": 2739, "loc": { "start": { - "line": 114, + "line": 130, "column": 25 }, "end": { - "line": 114, + "line": 130, "column": 26 } } @@ -12778,15 +15909,15 @@ "postfix": false, "binop": null }, - "start": 2416, - "end": 2417, + "start": 2739, + "end": 2740, "loc": { "start": { - "line": 114, + "line": 130, "column": 26 }, "end": { - "line": 114, + "line": 130, "column": 27 } } @@ -12804,15 +15935,15 @@ "binop": null, "updateContext": null }, - "start": 2418, - "end": 2420, + "start": 2741, + "end": 2743, "loc": { "start": { - "line": 114, + "line": 130, "column": 28 }, "end": { - "line": 114, + "line": 130, "column": 30 } } @@ -12830,24 +15961,24 @@ "binop": null }, "value": "copy", - "start": 2421, - "end": 2425, + "start": 2744, + "end": 2748, "loc": { "start": { - "line": 114, + "line": 130, "column": 31 }, "end": { - "line": 114, + "line": 130, "column": 35 } } }, { "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -12856,15 +15987,15 @@ "binop": null, "updateContext": null }, - "start": 2425, - "end": 2426, + "start": 2748, + "end": 2749, "loc": { "start": { - "line": 114, + "line": 130, "column": 35 }, "end": { - "line": 114, + "line": 130, "column": 36 } } @@ -12881,69 +16012,41 @@ "postfix": false, "binop": null }, - "value": "i", - "start": 2426, - "end": 2427, + "value": "set", + "start": 2749, + "end": 2752, "loc": { "start": { - "line": 114, + "line": 130, "column": 36 }, "end": { - "line": 114, - "column": 37 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2427, - "end": 2428, - "loc": { - "start": { - "line": 114, - "column": 37 - }, - "end": { - "line": 114, - "column": 38 + "line": 130, + "column": 39 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 2429, - "end": 2430, + "start": 2752, + "end": 2753, "loc": { "start": { - "line": 114, + "line": 130, "column": 39 }, "end": { - "line": 114, + "line": 130, "column": 40 } } @@ -12960,42 +16063,43 @@ "postfix": false, "binop": null }, - "value": "_clone", - "start": 2431, - "end": 2437, + "value": "k", + "start": 2753, + "end": 2754, "loc": { "start": { - "line": 114, - "column": 41 + "line": 130, + "column": 40 }, "end": { - "line": 114, - "column": 47 + "line": 130, + "column": 41 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2437, - "end": 2438, + "start": 2754, + "end": 2755, "loc": { "start": { - "line": 114, - "column": 47 + "line": 130, + "column": 41 }, "end": { - "line": 114, - "column": 48 + "line": 130, + "column": 42 } } }, @@ -13011,23 +16115,23 @@ "postfix": false, "binop": null }, - "value": "item", - "start": 2438, - "end": 2442, + "value": "_clone", + "start": 2756, + "end": 2762, "loc": { "start": { - "line": 114, - "column": 48 + "line": 130, + "column": 43 }, "end": { - "line": 114, - "column": 52 + "line": 130, + "column": 49 } } }, { "type": { - "label": "[", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -13035,19 +16139,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2442, - "end": 2443, + "start": 2762, + "end": 2763, "loc": { "start": { - "line": 114, - "column": 52 + "line": 130, + "column": 49 }, "end": { - "line": 114, - "column": 53 + "line": 130, + "column": 50 } } }, @@ -13063,23 +16166,23 @@ "postfix": false, "binop": null }, - "value": "i", - "start": 2443, - "end": 2444, + "value": "v", + "start": 2763, + "end": 2764, "loc": { "start": { - "line": 114, - "column": 53 + "line": 130, + "column": 50 }, "end": { - "line": 114, - "column": 54 + "line": 130, + "column": 51 } } }, { "type": { - "label": "]", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -13087,19 +16190,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2444, - "end": 2445, + "start": 2764, + "end": 2765, "loc": { "start": { - "line": 114, - "column": 54 + "line": 130, + "column": 51 }, "end": { - "line": 114, - "column": 55 + "line": 130, + "column": 52 } } }, @@ -13115,16 +16217,16 @@ "postfix": false, "binop": null }, - "start": 2445, - "end": 2446, + "start": 2765, + "end": 2766, "loc": { "start": { - "line": 114, - "column": 55 + "line": 130, + "column": 52 }, "end": { - "line": 114, - "column": 56 + "line": 130, + "column": 53 } } }, @@ -13140,16 +16242,16 @@ "postfix": false, "binop": null }, - "start": 2446, - "end": 2447, + "start": 2766, + "end": 2767, "loc": { "start": { - "line": 114, - "column": 56 + "line": 130, + "column": 53 }, "end": { - "line": 114, - "column": 57 + "line": 130, + "column": 54 } } }, @@ -13166,16 +16268,16 @@ "binop": null, "updateContext": null }, - "start": 2447, - "end": 2448, + "start": 2767, + "end": 2768, "loc": { "start": { - "line": 114, - "column": 57 + "line": 130, + "column": 54 }, "end": { - "line": 114, - "column": 58 + "line": 130, + "column": 55 } } }, @@ -13194,15 +16296,15 @@ "updateContext": null }, "value": "return", - "start": 2458, - "end": 2464, + "start": 2778, + "end": 2784, "loc": { "start": { - "line": 116, + "line": 132, "column": 8 }, "end": { - "line": 116, + "line": 132, "column": 14 } } @@ -13220,15 +16322,15 @@ "binop": null }, "value": "copy", - "start": 2465, - "end": 2469, + "start": 2785, + "end": 2789, "loc": { "start": { - "line": 116, + "line": 132, "column": 15 }, "end": { - "line": 116, + "line": 132, "column": 19 } } @@ -13246,15 +16348,15 @@ "binop": null, "updateContext": null }, - "start": 2469, - "end": 2470, + "start": 2789, + "end": 2790, "loc": { "start": { - "line": 116, + "line": 132, "column": 19 }, "end": { - "line": 116, + "line": 132, "column": 20 } } @@ -13271,15 +16373,15 @@ "postfix": false, "binop": null }, - "start": 2477, - "end": 2478, + "start": 2797, + "end": 2798, "loc": { "start": { - "line": 117, + "line": 133, "column": 6 }, "end": { - "line": 117, + "line": 133, "column": 7 } } @@ -13299,15 +16401,15 @@ "updateContext": null }, "value": "if", - "start": 2486, - "end": 2488, + "start": 2806, + "end": 2808, "loc": { "start": { - "line": 119, + "line": 135, "column": 6 }, "end": { - "line": 119, + "line": 135, "column": 8 } } @@ -13324,15 +16426,15 @@ "postfix": false, "binop": null }, - "start": 2489, - "end": 2490, + "start": 2809, + "end": 2810, "loc": { "start": { - "line": 119, + "line": 135, "column": 9 }, "end": { - "line": 119, + "line": 135, "column": 10 } } @@ -13350,15 +16452,15 @@ "binop": null }, "value": "item", - "start": 2490, - "end": 2494, + "start": 2810, + "end": 2814, "loc": { "start": { - "line": 119, + "line": 135, "column": 10 }, "end": { - "line": 119, + "line": 135, "column": 14 } } @@ -13378,15 +16480,15 @@ "updateContext": null }, "value": "instanceof", - "start": 2495, - "end": 2505, + "start": 2815, + "end": 2825, "loc": { "start": { - "line": 119, + "line": 135, "column": 15 }, "end": { - "line": 119, + "line": 135, "column": 25 } } @@ -13404,15 +16506,15 @@ "binop": null }, "value": "InstanceType", - "start": 2506, - "end": 2518, + "start": 2826, + "end": 2838, "loc": { "start": { - "line": 119, + "line": 135, "column": 26 }, "end": { - "line": 119, + "line": 135, "column": 38 } } @@ -13430,15 +16532,15 @@ "binop": null, "updateContext": null }, - "start": 2518, - "end": 2519, + "start": 2838, + "end": 2839, "loc": { "start": { - "line": 119, + "line": 135, "column": 38 }, "end": { - "line": 119, + "line": 135, "column": 39 } } @@ -13456,15 +16558,15 @@ "binop": null }, "value": "OBJECT", - "start": 2519, - "end": 2525, + "start": 2839, + "end": 2845, "loc": { "start": { - "line": 119, + "line": 135, "column": 39 }, "end": { - "line": 119, + "line": 135, "column": 45 } } @@ -13481,15 +16583,15 @@ "postfix": false, "binop": null }, - "start": 2525, - "end": 2526, + "start": 2845, + "end": 2846, "loc": { "start": { - "line": 119, + "line": 135, "column": 45 }, "end": { - "line": 119, + "line": 135, "column": 46 } } @@ -13506,15 +16608,15 @@ "postfix": false, "binop": null }, - "start": 2527, - "end": 2528, + "start": 2847, + "end": 2848, "loc": { "start": { - "line": 119, + "line": 135, "column": 47 }, "end": { - "line": 119, + "line": 135, "column": 48 } } @@ -13534,15 +16636,15 @@ "updateContext": null }, "value": "let", - "start": 2537, - "end": 2540, + "start": 2857, + "end": 2860, "loc": { "start": { - "line": 120, + "line": 136, "column": 8 }, "end": { - "line": 120, + "line": 136, "column": 11 } } @@ -13560,15 +16662,15 @@ "binop": null }, "value": "copy", - "start": 2541, - "end": 2545, + "start": 2861, + "end": 2865, "loc": { "start": { - "line": 120, + "line": 136, "column": 12 }, "end": { - "line": 120, + "line": 136, "column": 16 } } @@ -13587,15 +16689,15 @@ "updateContext": null }, "value": "=", - "start": 2546, - "end": 2547, + "start": 2866, + "end": 2867, "loc": { "start": { - "line": 120, + "line": 136, "column": 17 }, "end": { - "line": 120, + "line": 136, "column": 18 } } @@ -13612,15 +16714,15 @@ "postfix": false, "binop": null }, - "start": 2548, - "end": 2549, + "start": 2868, + "end": 2869, "loc": { "start": { - "line": 120, + "line": 136, "column": 19 }, "end": { - "line": 120, + "line": 136, "column": 20 } } @@ -13637,15 +16739,15 @@ "postfix": false, "binop": null }, - "start": 2549, - "end": 2550, + "start": 2869, + "end": 2870, "loc": { "start": { - "line": 120, + "line": 136, "column": 20 }, "end": { - "line": 120, + "line": 136, "column": 21 } } @@ -13663,15 +16765,15 @@ "binop": null, "updateContext": null }, - "start": 2550, - "end": 2551, + "start": 2870, + "end": 2871, "loc": { "start": { - "line": 120, + "line": 136, "column": 21 }, "end": { - "line": 120, + "line": 136, "column": 22 } } @@ -13679,15 +16781,15 @@ { "type": "CommentLine", "value": " $FlowFixMe", - "start": 2561, - "end": 2574, + "start": 2881, + "end": 2894, "loc": { "start": { - "line": 122, + "line": 138, "column": 8 }, "end": { - "line": 122, + "line": 138, "column": 21 } } @@ -13705,15 +16807,15 @@ "binop": null }, "value": "Object", - "start": 2583, - "end": 2589, + "start": 2903, + "end": 2909, "loc": { "start": { - "line": 123, + "line": 139, "column": 8 }, "end": { - "line": 123, + "line": 139, "column": 14 } } @@ -13731,15 +16833,15 @@ "binop": null, "updateContext": null }, - "start": 2589, - "end": 2590, + "start": 2909, + "end": 2910, "loc": { "start": { - "line": 123, + "line": 139, "column": 14 }, "end": { - "line": 123, + "line": 139, "column": 15 } } @@ -13757,15 +16859,15 @@ "binop": null }, "value": "getOwnPropertySymbols", - "start": 2590, - "end": 2611, + "start": 2910, + "end": 2931, "loc": { "start": { - "line": 123, + "line": 139, "column": 15 }, "end": { - "line": 123, + "line": 139, "column": 36 } } @@ -13782,15 +16884,15 @@ "postfix": false, "binop": null }, - "start": 2611, - "end": 2612, + "start": 2931, + "end": 2932, "loc": { "start": { - "line": 123, + "line": 139, "column": 36 }, "end": { - "line": 123, + "line": 139, "column": 37 } } @@ -13808,15 +16910,15 @@ "binop": null }, "value": "item", - "start": 2612, - "end": 2616, + "start": 2932, + "end": 2936, "loc": { "start": { - "line": 123, + "line": 139, "column": 37 }, "end": { - "line": 123, + "line": 139, "column": 41 } } @@ -13833,15 +16935,15 @@ "postfix": false, "binop": null }, - "start": 2616, - "end": 2617, + "start": 2936, + "end": 2937, "loc": { "start": { - "line": 123, + "line": 139, "column": 41 }, "end": { - "line": 123, + "line": 139, "column": 42 } } @@ -13859,15 +16961,15 @@ "binop": null, "updateContext": null }, - "start": 2617, - "end": 2618, + "start": 2937, + "end": 2938, "loc": { "start": { - "line": 123, + "line": 139, "column": 42 }, "end": { - "line": 123, + "line": 139, "column": 43 } } @@ -13885,15 +16987,15 @@ "binop": null }, "value": "forEach", - "start": 2618, - "end": 2625, + "start": 2938, + "end": 2945, "loc": { "start": { - "line": 123, + "line": 139, "column": 43 }, "end": { - "line": 123, + "line": 139, "column": 50 } } @@ -13910,15 +17012,15 @@ "postfix": false, "binop": null }, - "start": 2625, - "end": 2626, + "start": 2945, + "end": 2946, "loc": { "start": { - "line": 123, + "line": 139, "column": 50 }, "end": { - "line": 123, + "line": 139, "column": 51 } } @@ -13936,15 +17038,15 @@ "binop": null }, "value": "s", - "start": 2626, - "end": 2627, + "start": 2946, + "end": 2947, "loc": { "start": { - "line": 123, + "line": 139, "column": 51 }, "end": { - "line": 123, + "line": 139, "column": 52 } } @@ -13962,15 +17064,15 @@ "binop": null, "updateContext": null }, - "start": 2628, - "end": 2630, + "start": 2948, + "end": 2950, "loc": { "start": { - "line": 123, + "line": 139, "column": 53 }, "end": { - "line": 123, + "line": 139, "column": 55 } } @@ -13988,15 +17090,15 @@ "binop": null }, "value": "copy", - "start": 2631, - "end": 2635, + "start": 2951, + "end": 2955, "loc": { "start": { - "line": 123, + "line": 139, "column": 56 }, "end": { - "line": 123, + "line": 139, "column": 60 } } @@ -14014,15 +17116,15 @@ "binop": null, "updateContext": null }, - "start": 2635, - "end": 2636, + "start": 2955, + "end": 2956, "loc": { "start": { - "line": 123, + "line": 139, "column": 60 }, "end": { - "line": 123, + "line": 139, "column": 61 } } @@ -14040,15 +17142,15 @@ "binop": null }, "value": "s", - "start": 2636, - "end": 2637, + "start": 2956, + "end": 2957, "loc": { "start": { - "line": 123, + "line": 139, "column": 61 }, "end": { - "line": 123, + "line": 139, "column": 62 } } @@ -14066,15 +17168,15 @@ "binop": null, "updateContext": null }, - "start": 2637, - "end": 2638, + "start": 2957, + "end": 2958, "loc": { "start": { - "line": 123, + "line": 139, "column": 62 }, "end": { - "line": 123, + "line": 139, "column": 63 } } @@ -14093,15 +17195,15 @@ "updateContext": null }, "value": "=", - "start": 2639, - "end": 2640, + "start": 2959, + "end": 2960, "loc": { "start": { - "line": 123, + "line": 139, "column": 64 }, "end": { - "line": 123, + "line": 139, "column": 65 } } @@ -14119,15 +17221,15 @@ "binop": null }, "value": "_clone", - "start": 2641, - "end": 2647, + "start": 2961, + "end": 2967, "loc": { "start": { - "line": 123, + "line": 139, "column": 66 }, "end": { - "line": 123, + "line": 139, "column": 72 } } @@ -14144,15 +17246,15 @@ "postfix": false, "binop": null }, - "start": 2647, - "end": 2648, + "start": 2967, + "end": 2968, "loc": { "start": { - "line": 123, + "line": 139, "column": 72 }, "end": { - "line": 123, + "line": 139, "column": 73 } } @@ -14170,15 +17272,15 @@ "binop": null }, "value": "item", - "start": 2648, - "end": 2652, + "start": 2968, + "end": 2972, "loc": { "start": { - "line": 123, + "line": 139, "column": 73 }, "end": { - "line": 123, + "line": 139, "column": 77 } } @@ -14196,15 +17298,15 @@ "binop": null, "updateContext": null }, - "start": 2652, - "end": 2653, + "start": 2972, + "end": 2973, "loc": { "start": { - "line": 123, + "line": 139, "column": 77 }, "end": { - "line": 123, + "line": 139, "column": 78 } } @@ -14222,15 +17324,15 @@ "binop": null }, "value": "s", - "start": 2653, - "end": 2654, + "start": 2973, + "end": 2974, "loc": { "start": { - "line": 123, + "line": 139, "column": 78 }, "end": { - "line": 123, + "line": 139, "column": 79 } } @@ -14248,15 +17350,15 @@ "binop": null, "updateContext": null }, - "start": 2654, - "end": 2655, + "start": 2974, + "end": 2975, "loc": { "start": { - "line": 123, + "line": 139, "column": 79 }, "end": { - "line": 123, + "line": 139, "column": 80 } } @@ -14273,15 +17375,15 @@ "postfix": false, "binop": null }, - "start": 2655, - "end": 2656, + "start": 2975, + "end": 2976, "loc": { "start": { - "line": 123, + "line": 139, "column": 80 }, "end": { - "line": 123, + "line": 139, "column": 81 } } @@ -14298,15 +17400,15 @@ "postfix": false, "binop": null }, - "start": 2656, - "end": 2657, + "start": 2976, + "end": 2977, "loc": { "start": { - "line": 123, + "line": 139, "column": 81 }, "end": { - "line": 123, + "line": 139, "column": 82 } } @@ -14324,15 +17426,15 @@ "binop": null, "updateContext": null }, - "start": 2657, - "end": 2658, + "start": 2977, + "end": 2978, "loc": { "start": { - "line": 123, + "line": 139, "column": 82 }, "end": { - "line": 123, + "line": 139, "column": 83 } } @@ -14352,15 +17454,15 @@ "updateContext": null }, "value": "if", - "start": 2668, - "end": 2670, + "start": 2988, + "end": 2990, "loc": { "start": { - "line": 125, + "line": 141, "column": 8 }, "end": { - "line": 125, + "line": 141, "column": 10 } } @@ -14377,15 +17479,15 @@ "postfix": false, "binop": null }, - "start": 2671, - "end": 2672, + "start": 2991, + "end": 2992, "loc": { "start": { - "line": 125, + "line": 141, "column": 11 }, "end": { - "line": 125, + "line": 141, "column": 12 } } @@ -14403,15 +17505,15 @@ "binop": null }, "value": "includeNonEnumerable", - "start": 2672, - "end": 2692, + "start": 2992, + "end": 3012, "loc": { "start": { - "line": 125, + "line": 141, "column": 12 }, "end": { - "line": 125, + "line": 141, "column": 32 } } @@ -14428,15 +17530,15 @@ "postfix": false, "binop": null }, - "start": 2692, - "end": 2693, + "start": 3012, + "end": 3013, "loc": { "start": { - "line": 125, + "line": 141, "column": 32 }, "end": { - "line": 125, + "line": 141, "column": 33 } } @@ -14453,15 +17555,15 @@ "postfix": false, "binop": null }, - "start": 2694, - "end": 2695, + "start": 3014, + "end": 3015, "loc": { "start": { - "line": 125, + "line": 141, "column": 34 }, "end": { - "line": 125, + "line": 141, "column": 35 } } @@ -14479,15 +17581,15 @@ "binop": null }, "value": "Object", - "start": 2706, - "end": 2712, + "start": 3026, + "end": 3032, "loc": { "start": { - "line": 126, + "line": 142, "column": 10 }, "end": { - "line": 126, + "line": 142, "column": 16 } } @@ -14505,15 +17607,15 @@ "binop": null, "updateContext": null }, - "start": 2712, - "end": 2713, + "start": 3032, + "end": 3033, "loc": { "start": { - "line": 126, + "line": 142, "column": 16 }, "end": { - "line": 126, + "line": 142, "column": 17 } } @@ -14531,15 +17633,15 @@ "binop": null }, "value": "getOwnPropertyNames", - "start": 2713, - "end": 2732, + "start": 3033, + "end": 3052, "loc": { "start": { - "line": 126, + "line": 142, "column": 17 }, "end": { - "line": 126, + "line": 142, "column": 36 } } @@ -14556,15 +17658,15 @@ "postfix": false, "binop": null }, - "start": 2732, - "end": 2733, + "start": 3052, + "end": 3053, "loc": { "start": { - "line": 126, + "line": 142, "column": 36 }, "end": { - "line": 126, + "line": 142, "column": 37 } } @@ -14582,15 +17684,15 @@ "binop": null }, "value": "item", - "start": 2733, - "end": 2737, + "start": 3053, + "end": 3057, "loc": { "start": { - "line": 126, + "line": 142, "column": 37 }, "end": { - "line": 126, + "line": 142, "column": 41 } } @@ -14607,15 +17709,15 @@ "postfix": false, "binop": null }, - "start": 2737, - "end": 2738, + "start": 3057, + "end": 3058, "loc": { "start": { - "line": 126, + "line": 142, "column": 41 }, "end": { - "line": 126, + "line": 142, "column": 42 } } @@ -14633,15 +17735,15 @@ "binop": null, "updateContext": null }, - "start": 2738, - "end": 2739, + "start": 3058, + "end": 3059, "loc": { "start": { - "line": 126, + "line": 142, "column": 42 }, "end": { - "line": 126, + "line": 142, "column": 43 } } @@ -14659,15 +17761,15 @@ "binop": null }, "value": "forEach", - "start": 2739, - "end": 2746, + "start": 3059, + "end": 3066, "loc": { "start": { - "line": 126, + "line": 142, "column": 43 }, "end": { - "line": 126, + "line": 142, "column": 50 } } @@ -14684,15 +17786,15 @@ "postfix": false, "binop": null }, - "start": 2746, - "end": 2747, + "start": 3066, + "end": 3067, "loc": { "start": { - "line": 126, + "line": 142, "column": 50 }, "end": { - "line": 126, + "line": 142, "column": 51 } } @@ -14710,15 +17812,15 @@ "binop": null }, "value": "k", - "start": 2747, - "end": 2748, + "start": 3067, + "end": 3068, "loc": { "start": { - "line": 126, + "line": 142, "column": 51 }, "end": { - "line": 126, + "line": 142, "column": 52 } } @@ -14736,15 +17838,15 @@ "binop": null, "updateContext": null }, - "start": 2749, - "end": 2751, + "start": 3069, + "end": 3071, "loc": { "start": { - "line": 126, + "line": 142, "column": 53 }, "end": { - "line": 126, + "line": 142, "column": 55 } } @@ -14762,15 +17864,15 @@ "binop": null }, "value": "copy", - "start": 2752, - "end": 2756, + "start": 3072, + "end": 3076, "loc": { "start": { - "line": 126, + "line": 142, "column": 56 }, "end": { - "line": 126, + "line": 142, "column": 60 } } @@ -14788,15 +17890,15 @@ "binop": null, "updateContext": null }, - "start": 2756, - "end": 2757, + "start": 3076, + "end": 3077, "loc": { "start": { - "line": 126, + "line": 142, "column": 60 }, "end": { - "line": 126, + "line": 142, "column": 61 } } @@ -14814,15 +17916,15 @@ "binop": null }, "value": "k", - "start": 2757, - "end": 2758, + "start": 3077, + "end": 3078, "loc": { "start": { - "line": 126, + "line": 142, "column": 61 }, "end": { - "line": 126, + "line": 142, "column": 62 } } @@ -14840,15 +17942,15 @@ "binop": null, "updateContext": null }, - "start": 2758, - "end": 2759, + "start": 3078, + "end": 3079, "loc": { "start": { - "line": 126, + "line": 142, "column": 62 }, "end": { - "line": 126, + "line": 142, "column": 63 } } @@ -14867,15 +17969,15 @@ "updateContext": null }, "value": "=", - "start": 2760, - "end": 2761, + "start": 3080, + "end": 3081, "loc": { "start": { - "line": 126, + "line": 142, "column": 64 }, "end": { - "line": 126, + "line": 142, "column": 65 } } @@ -14893,15 +17995,15 @@ "binop": null }, "value": "_clone", - "start": 2762, - "end": 2768, + "start": 3082, + "end": 3088, "loc": { "start": { - "line": 126, + "line": 142, "column": 66 }, "end": { - "line": 126, + "line": 142, "column": 72 } } @@ -14918,15 +18020,15 @@ "postfix": false, "binop": null }, - "start": 2768, - "end": 2769, + "start": 3088, + "end": 3089, "loc": { "start": { - "line": 126, + "line": 142, "column": 72 }, "end": { - "line": 126, + "line": 142, "column": 73 } } @@ -14944,15 +18046,15 @@ "binop": null }, "value": "item", - "start": 2769, - "end": 2773, + "start": 3089, + "end": 3093, "loc": { "start": { - "line": 126, + "line": 142, "column": 73 }, "end": { - "line": 126, + "line": 142, "column": 77 } } @@ -14970,15 +18072,15 @@ "binop": null, "updateContext": null }, - "start": 2773, - "end": 2774, + "start": 3093, + "end": 3094, "loc": { "start": { - "line": 126, + "line": 142, "column": 77 }, "end": { - "line": 126, + "line": 142, "column": 78 } } @@ -14996,15 +18098,15 @@ "binop": null }, "value": "k", - "start": 2774, - "end": 2775, + "start": 3094, + "end": 3095, "loc": { "start": { - "line": 126, + "line": 142, "column": 78 }, "end": { - "line": 126, + "line": 142, "column": 79 } } @@ -15022,15 +18124,15 @@ "binop": null, "updateContext": null }, - "start": 2775, - "end": 2776, + "start": 3095, + "end": 3096, "loc": { "start": { - "line": 126, + "line": 142, "column": 79 }, "end": { - "line": 126, + "line": 142, "column": 80 } } @@ -15047,15 +18149,15 @@ "postfix": false, "binop": null }, - "start": 2776, - "end": 2777, + "start": 3096, + "end": 3097, "loc": { "start": { - "line": 126, + "line": 142, "column": 80 }, "end": { - "line": 126, + "line": 142, "column": 81 } } @@ -15072,15 +18174,15 @@ "postfix": false, "binop": null }, - "start": 2777, - "end": 2778, + "start": 3097, + "end": 3098, "loc": { "start": { - "line": 126, + "line": 142, "column": 81 }, "end": { - "line": 126, + "line": 142, "column": 82 } } @@ -15098,15 +18200,15 @@ "binop": null, "updateContext": null }, - "start": 2778, - "end": 2779, + "start": 3098, + "end": 3099, "loc": { "start": { - "line": 126, + "line": 142, "column": 82 }, "end": { - "line": 126, + "line": 142, "column": 83 } } @@ -15123,15 +18225,15 @@ "postfix": false, "binop": null }, - "start": 2788, - "end": 2789, + "start": 3108, + "end": 3109, "loc": { "start": { - "line": 127, + "line": 143, "column": 8 }, "end": { - "line": 127, + "line": 143, "column": 9 } } @@ -15151,15 +18253,15 @@ "updateContext": null }, "value": "else", - "start": 2790, - "end": 2794, + "start": 3110, + "end": 3114, "loc": { "start": { - "line": 127, + "line": 143, "column": 10 }, "end": { - "line": 127, + "line": 143, "column": 14 } } @@ -15176,15 +18278,15 @@ "postfix": false, "binop": null }, - "start": 2795, - "end": 2796, + "start": 3115, + "end": 3116, "loc": { "start": { - "line": 127, + "line": 143, "column": 15 }, "end": { - "line": 127, + "line": 143, "column": 16 } } @@ -15202,15 +18304,15 @@ "binop": null }, "value": "Object", - "start": 2807, - "end": 2813, + "start": 3127, + "end": 3133, "loc": { "start": { - "line": 128, + "line": 144, "column": 10 }, "end": { - "line": 128, + "line": 144, "column": 16 } } @@ -15228,15 +18330,15 @@ "binop": null, "updateContext": null }, - "start": 2813, - "end": 2814, + "start": 3133, + "end": 3134, "loc": { "start": { - "line": 128, + "line": 144, "column": 16 }, "end": { - "line": 128, + "line": 144, "column": 17 } } @@ -15254,15 +18356,15 @@ "binop": null }, "value": "keys", - "start": 2814, - "end": 2818, + "start": 3134, + "end": 3138, "loc": { "start": { - "line": 128, + "line": 144, "column": 17 }, "end": { - "line": 128, + "line": 144, "column": 21 } } @@ -15279,15 +18381,15 @@ "postfix": false, "binop": null }, - "start": 2818, - "end": 2819, + "start": 3138, + "end": 3139, "loc": { "start": { - "line": 128, + "line": 144, "column": 21 }, "end": { - "line": 128, + "line": 144, "column": 22 } } @@ -15305,15 +18407,15 @@ "binop": null }, "value": "item", - "start": 2819, - "end": 2823, + "start": 3139, + "end": 3143, "loc": { "start": { - "line": 128, + "line": 144, "column": 22 }, "end": { - "line": 128, + "line": 144, "column": 26 } } @@ -15330,15 +18432,15 @@ "postfix": false, "binop": null }, - "start": 2823, - "end": 2824, + "start": 3143, + "end": 3144, "loc": { "start": { - "line": 128, + "line": 144, "column": 26 }, "end": { - "line": 128, + "line": 144, "column": 27 } } @@ -15356,15 +18458,15 @@ "binop": null, "updateContext": null }, - "start": 2824, - "end": 2825, + "start": 3144, + "end": 3145, "loc": { "start": { - "line": 128, + "line": 144, "column": 27 }, "end": { - "line": 128, + "line": 144, "column": 28 } } @@ -15382,15 +18484,15 @@ "binop": null }, "value": "forEach", - "start": 2825, - "end": 2832, + "start": 3145, + "end": 3152, "loc": { "start": { - "line": 128, + "line": 144, "column": 28 }, "end": { - "line": 128, + "line": 144, "column": 35 } } @@ -15407,15 +18509,15 @@ "postfix": false, "binop": null }, - "start": 2832, - "end": 2833, + "start": 3152, + "end": 3153, "loc": { "start": { - "line": 128, + "line": 144, "column": 35 }, "end": { - "line": 128, + "line": 144, "column": 36 } } @@ -15433,15 +18535,15 @@ "binop": null }, "value": "k", - "start": 2833, - "end": 2834, + "start": 3153, + "end": 3154, "loc": { "start": { - "line": 128, + "line": 144, "column": 36 }, "end": { - "line": 128, + "line": 144, "column": 37 } } @@ -15459,15 +18561,15 @@ "binop": null, "updateContext": null }, - "start": 2835, - "end": 2837, + "start": 3155, + "end": 3157, "loc": { "start": { - "line": 128, + "line": 144, "column": 38 }, "end": { - "line": 128, + "line": 144, "column": 40 } } @@ -15485,15 +18587,15 @@ "binop": null }, "value": "copy", - "start": 2838, - "end": 2842, + "start": 3158, + "end": 3162, "loc": { "start": { - "line": 128, + "line": 144, "column": 41 }, "end": { - "line": 128, + "line": 144, "column": 45 } } @@ -15511,15 +18613,15 @@ "binop": null, "updateContext": null }, - "start": 2842, - "end": 2843, + "start": 3162, + "end": 3163, "loc": { "start": { - "line": 128, + "line": 144, "column": 45 }, "end": { - "line": 128, + "line": 144, "column": 46 } } @@ -15537,15 +18639,15 @@ "binop": null }, "value": "k", - "start": 2843, - "end": 2844, + "start": 3163, + "end": 3164, "loc": { "start": { - "line": 128, + "line": 144, "column": 46 }, "end": { - "line": 128, + "line": 144, "column": 47 } } @@ -15563,15 +18665,15 @@ "binop": null, "updateContext": null }, - "start": 2844, - "end": 2845, + "start": 3164, + "end": 3165, "loc": { "start": { - "line": 128, + "line": 144, "column": 47 }, "end": { - "line": 128, + "line": 144, "column": 48 } } @@ -15590,15 +18692,15 @@ "updateContext": null }, "value": "=", - "start": 2846, - "end": 2847, + "start": 3166, + "end": 3167, "loc": { "start": { - "line": 128, + "line": 144, "column": 49 }, "end": { - "line": 128, + "line": 144, "column": 50 } } @@ -15616,15 +18718,15 @@ "binop": null }, "value": "_clone", - "start": 2848, - "end": 2854, + "start": 3168, + "end": 3174, "loc": { "start": { - "line": 128, + "line": 144, "column": 51 }, "end": { - "line": 128, + "line": 144, "column": 57 } } @@ -15641,15 +18743,15 @@ "postfix": false, "binop": null }, - "start": 2854, - "end": 2855, + "start": 3174, + "end": 3175, "loc": { "start": { - "line": 128, + "line": 144, "column": 57 }, "end": { - "line": 128, + "line": 144, "column": 58 } } @@ -15667,15 +18769,15 @@ "binop": null }, "value": "item", - "start": 2855, - "end": 2859, + "start": 3175, + "end": 3179, "loc": { "start": { - "line": 128, + "line": 144, "column": 58 }, "end": { - "line": 128, + "line": 144, "column": 62 } } @@ -15693,15 +18795,15 @@ "binop": null, "updateContext": null }, - "start": 2859, - "end": 2860, + "start": 3179, + "end": 3180, "loc": { "start": { - "line": 128, + "line": 144, "column": 62 }, "end": { - "line": 128, + "line": 144, "column": 63 } } @@ -15719,15 +18821,15 @@ "binop": null }, "value": "k", - "start": 2860, - "end": 2861, + "start": 3180, + "end": 3181, "loc": { "start": { - "line": 128, + "line": 144, "column": 63 }, "end": { - "line": 128, + "line": 144, "column": 64 } } @@ -15745,15 +18847,15 @@ "binop": null, "updateContext": null }, - "start": 2861, - "end": 2862, + "start": 3181, + "end": 3182, "loc": { "start": { - "line": 128, + "line": 144, "column": 64 }, "end": { - "line": 128, + "line": 144, "column": 65 } } @@ -15770,15 +18872,15 @@ "postfix": false, "binop": null }, - "start": 2862, - "end": 2863, + "start": 3182, + "end": 3183, "loc": { "start": { - "line": 128, + "line": 144, "column": 65 }, "end": { - "line": 128, + "line": 144, "column": 66 } } @@ -15795,15 +18897,15 @@ "postfix": false, "binop": null }, - "start": 2863, - "end": 2864, + "start": 3183, + "end": 3184, "loc": { "start": { - "line": 128, + "line": 144, "column": 66 }, "end": { - "line": 128, + "line": 144, "column": 67 } } @@ -15821,15 +18923,15 @@ "binop": null, "updateContext": null }, - "start": 2864, - "end": 2865, + "start": 3184, + "end": 3185, "loc": { "start": { - "line": 128, + "line": 144, "column": 67 }, "end": { - "line": 128, + "line": 144, "column": 68 } } @@ -15846,15 +18948,15 @@ "postfix": false, "binop": null }, - "start": 2874, - "end": 2875, + "start": 3194, + "end": 3195, "loc": { "start": { - "line": 129, + "line": 145, "column": 8 }, "end": { - "line": 129, + "line": 145, "column": 9 } } @@ -15874,15 +18976,15 @@ "updateContext": null }, "value": "return", - "start": 2885, - "end": 2891, + "start": 3205, + "end": 3211, "loc": { "start": { - "line": 131, + "line": 147, "column": 8 }, "end": { - "line": 131, + "line": 147, "column": 14 } } @@ -15900,15 +19002,15 @@ "binop": null }, "value": "copy", - "start": 2892, - "end": 2896, + "start": 3212, + "end": 3216, "loc": { "start": { - "line": 131, + "line": 147, "column": 15 }, "end": { - "line": 131, + "line": 147, "column": 19 } } @@ -15926,15 +19028,15 @@ "binop": null, "updateContext": null }, - "start": 2896, - "end": 2897, + "start": 3216, + "end": 3217, "loc": { "start": { - "line": 131, + "line": 147, "column": 19 }, "end": { - "line": 131, + "line": 147, "column": 20 } } @@ -15951,15 +19053,15 @@ "postfix": false, "binop": null }, - "start": 2904, - "end": 2905, + "start": 3224, + "end": 3225, "loc": { "start": { - "line": 132, + "line": 148, "column": 6 }, "end": { - "line": 132, + "line": 148, "column": 7 } } @@ -15979,15 +19081,15 @@ "updateContext": null }, "value": "throw", - "start": 2913, - "end": 2918, + "start": 3233, + "end": 3238, "loc": { "start": { - "line": 134, + "line": 150, "column": 6 }, "end": { - "line": 134, + "line": 150, "column": 11 } } @@ -16007,15 +19109,15 @@ "updateContext": null }, "value": "new", - "start": 2919, - "end": 2922, + "start": 3239, + "end": 3242, "loc": { "start": { - "line": 134, + "line": 150, "column": 12 }, "end": { - "line": 134, + "line": 150, "column": 15 } } @@ -16033,15 +19135,15 @@ "binop": null }, "value": "Error", - "start": 2923, - "end": 2928, + "start": 3243, + "end": 3248, "loc": { "start": { - "line": 134, + "line": 150, "column": 16 }, "end": { - "line": 134, + "line": 150, "column": 21 } } @@ -16058,15 +19160,15 @@ "postfix": false, "binop": null }, - "start": 2928, - "end": 2929, + "start": 3248, + "end": 3249, "loc": { "start": { - "line": 134, + "line": 150, "column": 21 }, "end": { - "line": 134, + "line": 150, "column": 22 } } @@ -16083,15 +19185,15 @@ "postfix": false, "binop": null }, - "start": 2929, - "end": 2930, + "start": 3249, + "end": 3250, "loc": { "start": { - "line": 134, + "line": 150, "column": 22 }, "end": { - "line": 134, + "line": 150, "column": 23 } } @@ -16110,15 +19212,15 @@ "updateContext": null }, "value": "Unable to copy object: ", - "start": 2930, - "end": 2953, + "start": 3250, + "end": 3273, "loc": { "start": { - "line": 134, + "line": 150, "column": 23 }, "end": { - "line": 134, + "line": 150, "column": 46 } } @@ -16135,15 +19237,15 @@ "postfix": false, "binop": null }, - "start": 2953, - "end": 2955, + "start": 3273, + "end": 3275, "loc": { "start": { - "line": 134, + "line": 150, "column": 46 }, "end": { - "line": 134, + "line": 150, "column": 48 } } @@ -16161,15 +19263,15 @@ "binop": null }, "value": "item", - "start": 2955, - "end": 2959, + "start": 3275, + "end": 3279, "loc": { "start": { - "line": 134, + "line": 150, "column": 48 }, "end": { - "line": 134, + "line": 150, "column": 52 } } @@ -16186,15 +19288,15 @@ "postfix": false, "binop": null }, - "start": 2959, - "end": 2960, + "start": 3279, + "end": 3280, "loc": { "start": { - "line": 134, + "line": 150, "column": 52 }, "end": { - "line": 134, + "line": 150, "column": 53 } } @@ -16213,15 +19315,15 @@ "updateContext": null }, "value": "", - "start": 2960, - "end": 2960, + "start": 3280, + "end": 3280, "loc": { "start": { - "line": 134, + "line": 150, "column": 53 }, "end": { - "line": 134, + "line": 150, "column": 53 } } @@ -16238,15 +19340,15 @@ "postfix": false, "binop": null }, - "start": 2960, - "end": 2961, + "start": 3280, + "end": 3281, "loc": { "start": { - "line": 134, + "line": 150, "column": 53 }, "end": { - "line": 134, + "line": 150, "column": 54 } } @@ -16263,15 +19365,15 @@ "postfix": false, "binop": null }, - "start": 2961, - "end": 2962, + "start": 3281, + "end": 3282, "loc": { "start": { - "line": 134, + "line": 150, "column": 54 }, "end": { - "line": 134, + "line": 150, "column": 55 } } @@ -16289,15 +19391,15 @@ "binop": null, "updateContext": null }, - "start": 2962, - "end": 2963, + "start": 3282, + "end": 3283, "loc": { "start": { - "line": 134, + "line": 150, "column": 55 }, "end": { - "line": 134, + "line": 150, "column": 56 } } @@ -16314,15 +19416,15 @@ "postfix": false, "binop": null }, - "start": 2968, - "end": 2969, + "start": 3288, + "end": 3289, "loc": { "start": { - "line": 135, + "line": 151, "column": 4 }, "end": { - "line": 135, + "line": 151, "column": 5 } } @@ -16342,15 +19444,15 @@ "updateContext": null }, "value": "return", - "start": 2975, - "end": 2981, + "start": 3295, + "end": 3301, "loc": { "start": { - "line": 137, + "line": 153, "column": 4 }, "end": { - "line": 137, + "line": 153, "column": 10 } } @@ -16368,15 +19470,15 @@ "binop": null }, "value": "_clone", - "start": 2982, - "end": 2988, + "start": 3302, + "end": 3308, "loc": { "start": { - "line": 137, + "line": 153, "column": 11 }, "end": { - "line": 137, + "line": 153, "column": 17 } } @@ -16393,15 +19495,15 @@ "postfix": false, "binop": null }, - "start": 2988, - "end": 2989, + "start": 3308, + "end": 3309, "loc": { "start": { - "line": 137, + "line": 153, "column": 17 }, "end": { - "line": 137, + "line": 153, "column": 18 } } @@ -16421,15 +19523,15 @@ "updateContext": null }, "value": "this", - "start": 2989, - "end": 2993, + "start": 3309, + "end": 3313, "loc": { "start": { - "line": 137, + "line": 153, "column": 18 }, "end": { - "line": 137, + "line": 153, "column": 22 } } @@ -16446,15 +19548,15 @@ "postfix": false, "binop": null }, - "start": 2993, - "end": 2994, + "start": 3313, + "end": 3314, "loc": { "start": { - "line": 137, + "line": 153, "column": 22 }, "end": { - "line": 137, + "line": 153, "column": 23 } } @@ -16472,15 +19574,15 @@ "binop": null, "updateContext": null }, - "start": 2994, - "end": 2995, + "start": 3314, + "end": 3315, "loc": { "start": { - "line": 137, + "line": 153, "column": 23 }, "end": { - "line": 137, + "line": 153, "column": 24 } } @@ -16497,15 +19599,15 @@ "postfix": false, "binop": null }, - "start": 2998, - "end": 2999, + "start": 3318, + "end": 3319, "loc": { "start": { - "line": 138, + "line": 154, "column": 2 }, "end": { - "line": 138, + "line": 154, "column": 3 } } @@ -16522,15 +19624,15 @@ "postfix": false, "binop": null }, - "start": 3000, - "end": 3001, + "start": 3320, + "end": 3321, "loc": { "start": { - "line": 139, + "line": 155, "column": 0 }, "end": { - "line": 139, + "line": 155, "column": 1 } } @@ -16550,15 +19652,15 @@ "updateContext": null }, "value": "export", - "start": 3003, - "end": 3009, + "start": 3323, + "end": 3329, "loc": { "start": { - "line": 141, + "line": 157, "column": 0 }, "end": { - "line": 141, + "line": 157, "column": 6 } } @@ -16575,15 +19677,15 @@ "postfix": false, "binop": null }, - "start": 3010, - "end": 3011, + "start": 3330, + "end": 3331, "loc": { "start": { - "line": 141, + "line": 157, "column": 7 }, "end": { - "line": 141, + "line": 157, "column": 8 } } @@ -16601,15 +19703,15 @@ "binop": null }, "value": "_Object", - "start": 3012, - "end": 3019, + "start": 3332, + "end": 3339, "loc": { "start": { - "line": 141, + "line": 157, "column": 9 }, "end": { - "line": 141, + "line": 157, "column": 16 } } @@ -16627,15 +19729,15 @@ "binop": null }, "value": "as", - "start": 3020, - "end": 3022, + "start": 3340, + "end": 3342, "loc": { "start": { - "line": 141, + "line": 157, "column": 17 }, "end": { - "line": 141, + "line": 157, "column": 19 } } @@ -16653,15 +19755,15 @@ "binop": null }, "value": "Object", - "start": 3023, - "end": 3029, + "start": 3343, + "end": 3349, "loc": { "start": { - "line": 141, + "line": 157, "column": 20 }, "end": { - "line": 141, + "line": 157, "column": 26 } } @@ -16678,15 +19780,15 @@ "postfix": false, "binop": null }, - "start": 3030, - "end": 3031, + "start": 3350, + "end": 3351, "loc": { "start": { - "line": 141, + "line": 157, "column": 27 }, "end": { - "line": 141, + "line": 157, "column": 28 } } @@ -16704,15 +19806,15 @@ "binop": null, "updateContext": null }, - "start": 3031, - "end": 3032, + "start": 3351, + "end": 3352, "loc": { "start": { - "line": 141, + "line": 157, "column": 28 }, "end": { - "line": 141, + "line": 157, "column": 29 } } @@ -16730,15 +19832,15 @@ "binop": null, "updateContext": null }, - "start": 3032, - "end": 3032, + "start": 3352, + "end": 3352, "loc": { "start": { - "line": 141, + "line": 157, "column": 29 }, "end": { - "line": 141, + "line": 157, "column": 29 } } diff --git a/docs/file/packages/Object/src/lib/Object.js.html b/docs/file/packages/Object/src/lib/Object.js.html index 84500b8..0e23445 100644 --- a/docs/file/packages/Object/src/lib/Object.js.html +++ b/docs/file/packages/Object/src/lib/Object.js.html @@ -197,6 +197,22 @@ return copy; } + if (item instanceof InstanceType.SET) { + let copy = new Set(); + + item.forEach(v => copy.add(_clone(v))); + + return copy; + } + + if (item instanceof InstanceType.MAP) { + let copy = new Map(); + + item.forEach((v, k) => copy.set(k, _clone(v))); + + return copy; + } + if (item instanceof InstanceType.OBJECT) { let copy = {}; diff --git a/docs/index.json b/docs/index.json index 1a915eb..09741cb 100644 --- a/docs/index.json +++ b/docs/index.json @@ -3076,7 +3076,7 @@ "__docId__": 124, "kind": "file", "name": "packages/Object/src/lib/Object.js", - "content": "/**\n * @flow\n * @module super/object\n */\n\nimport { InstanceType, PrimitiveType } from \"../../../shared/src/constants\";\nimport type { Item } from \"../../../shared/src/types\";\n\n/**\n * @typedef {object} Config\n * @property {boolean} [includeNonEnumerable=false]\n */\n\ntype Config = {\n includeNonEnumerable: ?boolean\n};\n\n/**\n *\n * Object with superpowers! 💪\n *\n * @public\n *\n */\nclass _Object extends Object {\n /**\n * @public\n *\n * @desc Construct an Object\n *\n * @param {Object} object\n */\n constructor(object: Object) {\n // $FlowFixMe\n super(object);\n }\n\n /**\n * @public\n *\n * @desc Check for nested value from string key\n *\n * @param {string} path\n * @return {boolean} property value exists\n */\n hasNested(path: string): boolean {\n let item = this;\n // TODO: throw error on invalid path\n path = path.replace(/\\[(\\w+)\\]/, \".$1\").replace(/^\\./, \"\");\n\n const keys = path.split(\".\");\n for (let key of keys) {\n if (typeof item === PrimitiveType.OBJECT && key in item) item = item[key];\n else return false;\n }\n return true;\n }\n\n /**\n * @public\n *\n * @desc Get nested JavaScript object value from string key\n *\n * @param {string} path\n * @return {Item} property value\n */\n getNested(path: string): Item {\n let item = this;\n // TODO: throw error on invalid path\n path = path.replace(/\\[(\\w+)\\]/, \".$1\").replace(/^\\./, \"\");\n\n const keys = path.split(\".\");\n for (let key of keys) {\n if (typeof item === PrimitiveType.OBJECT && key in item) item = item[key];\n else return;\n }\n return item;\n }\n\n /**\n * @public\n *\n * @desc Deep clone an Object\n *\n * @param {Config} [config={}] Configuration object\n * @returns {object} Deep cloned Object\n *\n * @example\n *\n * const obj = new SuperObject({ key1: [\"1\", 1, true, (a, b) => a+b], [Symbol(\"key2\")]: {s: \"s\"} });\n * const clone = obj.clone();\n *\n * console.log(clone);\n * // { key1: [\"1\", 1, true, (a, b) => a+b], Symbol(\"key2\"): {s: \"s\"} }\n *\n */\n // $FlowFixMe\n clone(config: Config = {}): Object {\n const { includeNonEnumerable = false } = config;\n\n /**\n * @private\n *\n * @desc Deep clone helper\n *\n * @param {Item} item\n * @returns {any} cloned item\n */\n function _clone(item: Item): Item {\n if (item === null || typeof item !== PrimitiveType.OBJECT) {\n return item;\n }\n\n if (item instanceof InstanceType.DATE) {\n return new Date(item.valueOf());\n }\n\n if (item instanceof InstanceType.ARRAY) {\n let copy = [];\n\n item.forEach((_, i) => (copy[i] = _clone(item[i])));\n\n return copy;\n }\n\n if (item instanceof InstanceType.OBJECT) {\n let copy = {};\n\n // $FlowFixMe\n Object.getOwnPropertySymbols(item).forEach(s => (copy[s] = _clone(item[s])));\n\n if (includeNonEnumerable) {\n Object.getOwnPropertyNames(item).forEach(k => (copy[k] = _clone(item[k])));\n } else {\n Object.keys(item).forEach(k => (copy[k] = _clone(item[k])));\n }\n\n return copy;\n }\n\n throw new Error(`Unable to copy object: ${item}`);\n }\n\n return _clone(this);\n }\n}\n\nexport { _Object as Object };\n", + "content": "/**\n * @flow\n * @module super/object\n */\n\nimport { InstanceType, PrimitiveType } from \"../../../shared/src/constants\";\nimport type { Item } from \"../../../shared/src/types\";\n\n/**\n * @typedef {object} Config\n * @property {boolean} [includeNonEnumerable=false]\n */\n\ntype Config = {\n includeNonEnumerable: ?boolean\n};\n\n/**\n *\n * Object with superpowers! 💪\n *\n * @public\n *\n */\nclass _Object extends Object {\n /**\n * @public\n *\n * @desc Construct an Object\n *\n * @param {Object} object\n */\n constructor(object: Object) {\n // $FlowFixMe\n super(object);\n }\n\n /**\n * @public\n *\n * @desc Check for nested value from string key\n *\n * @param {string} path\n * @return {boolean} property value exists\n */\n hasNested(path: string): boolean {\n let item = this;\n // TODO: throw error on invalid path\n path = path.replace(/\\[(\\w+)\\]/, \".$1\").replace(/^\\./, \"\");\n\n const keys = path.split(\".\");\n for (let key of keys) {\n if (typeof item === PrimitiveType.OBJECT && key in item) item = item[key];\n else return false;\n }\n return true;\n }\n\n /**\n * @public\n *\n * @desc Get nested JavaScript object value from string key\n *\n * @param {string} path\n * @return {Item} property value\n */\n getNested(path: string): Item {\n let item = this;\n // TODO: throw error on invalid path\n path = path.replace(/\\[(\\w+)\\]/, \".$1\").replace(/^\\./, \"\");\n\n const keys = path.split(\".\");\n for (let key of keys) {\n if (typeof item === PrimitiveType.OBJECT && key in item) item = item[key];\n else return;\n }\n return item;\n }\n\n /**\n * @public\n *\n * @desc Deep clone an Object\n *\n * @param {Config} [config={}] Configuration object\n * @returns {object} Deep cloned Object\n *\n * @example\n *\n * const obj = new SuperObject({ key1: [\"1\", 1, true, (a, b) => a+b], [Symbol(\"key2\")]: {s: \"s\"} });\n * const clone = obj.clone();\n *\n * console.log(clone);\n * // { key1: [\"1\", 1, true, (a, b) => a+b], Symbol(\"key2\"): {s: \"s\"} }\n *\n */\n // $FlowFixMe\n clone(config: Config = {}): Object {\n const { includeNonEnumerable = false } = config;\n\n /**\n * @private\n *\n * @desc Deep clone helper\n *\n * @param {Item} item\n * @returns {any} cloned item\n */\n function _clone(item: Item): Item {\n if (item === null || typeof item !== PrimitiveType.OBJECT) {\n return item;\n }\n\n if (item instanceof InstanceType.DATE) {\n return new Date(item.valueOf());\n }\n\n if (item instanceof InstanceType.ARRAY) {\n let copy = [];\n\n item.forEach((_, i) => (copy[i] = _clone(item[i])));\n\n return copy;\n }\n\n if (item instanceof InstanceType.SET) {\n let copy = new Set();\n\n item.forEach(v => copy.add(_clone(v)));\n\n return copy;\n }\n\n if (item instanceof InstanceType.MAP) {\n let copy = new Map();\n\n item.forEach((v, k) => copy.set(k, _clone(v)));\n\n return copy;\n }\n\n if (item instanceof InstanceType.OBJECT) {\n let copy = {};\n\n // $FlowFixMe\n Object.getOwnPropertySymbols(item).forEach(s => (copy[s] = _clone(item[s])));\n\n if (includeNonEnumerable) {\n Object.getOwnPropertyNames(item).forEach(k => (copy[k] = _clone(item[k])));\n } else {\n Object.keys(item).forEach(k => (copy[k] = _clone(item[k])));\n }\n\n return copy;\n }\n\n throw new Error(`Unable to copy object: ${item}`);\n }\n\n return _clone(this);\n }\n}\n\nexport { _Object as Object };\n", "static": true, "longname": "/Users/clarketm/js/super/packages/Object/src/lib/Object.js", "access": "public", diff --git a/docs/source.html b/docs/source.html index 6fd744f..941eda1 100644 --- a/docs/source.html +++ b/docs/source.html @@ -194,9 +194,9 @@ packages/Object/src/lib/Object.js _Object 100 %5/5 - 3237 byte - 148 - 2018-05-05 15:39:25 (UTC) + 3557 byte + 164 + 2018-07-04 23:48:33 (UTC) packages/PriorityQueue/src/lib/PriorityQueue.js