get-own-property-symbols-x
Version:
Creates an array of all symbol properties found directly upon a given object.
15 lines • 7.86 kB
JavaScript
/*!
{
"author": "Graham Fairweather",
"copywrite": "Copyright (c) 2017",
"date": "2019-08-28T17:29:06.574Z",
"describe": "",
"description": "Creates an array of all symbol properties found directly upon a given object.",
"file": "get-own-property-symbols-x.min.js",
"hash": "392d93cd0e7c4bfbe830",
"license": "MIT",
"version": "2.1.2"
}
*/
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.getOwnPropertySymbolsX=n():t.getOwnPropertySymbolsX=n()}(function(){"use strict";var t,n={}.constructor,r=n.prototype,e=n.defineProperty,o=function(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},u=function(){return this};try{return e?e(r,"$$globalThis$$",{get:u,configurable:!0}):r.__defineGetter__("$$globalThis$$",u),t="undefined"==typeof $$globalThis$$?o():$$globalThis$$,delete r.$$globalThis$$,t}catch(t){return o()}}(),function(){return function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=5)}([function(t,n,r){"use strict";var e=String.prototype.valueOf,o=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"string"==typeof t||"object"==typeof t&&(u?function(t){try{return e.call(t),!0}catch(t){return!1}}(t):"[object String]"===o.call(t))}},function(t,n,r){"use strict";var e=Object.prototype.toString;if(r(2)()){var o=Symbol.prototype.toString,u=/^Symbol\(.*\)$/;t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==e.call(t))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&u.test(o.call(t))}(t)}catch(t){return!1}}}else t.exports=function(t){return!1}},function(t,n,r){"use strict";(function(n){var e=n.Symbol,o=r(4);t.exports=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,r(3))},function(t,n){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,n,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},n=Symbol("test"),r=Object(n);if("string"==typeof n)return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(n in t[n]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var e=Object.getOwnPropertySymbols(t);if(1!==e.length||e[0]!==n)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,n);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,n,r){"use strict";r.r(n);var e=function(t){return null==t},o=function(t){if(e(t))throw new TypeError("Cannot call method on ".concat(t));return t},u={}.constructor,i=function(t){return u(o(t))};function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var f=function(t){return"object"===c(t)?null===t:"function"!=typeof t},l=r(0),p=r.n(l),y={}.constructor("a"),a="a"===y[0]&&0 in y,s=function(){}.bind,b="function"==typeof s&&function(){var t=null,n=null,r=null,e=[];try{var o=s.apply(function(e,o){return r=this,t=e,n=o,arguments},[e,1]),u=o(2);return 1===o.length&&2===u.length&&1===t&&2===n&&r===e}catch(t){return!1}}()&&function(){var t=null,n=null,r=null,e=[1,2,3],o=function(o,u){return t=o,n=u,r=this,e};try{var u=s.apply(o,[null]),i=new u(1,2);return u.length===o.length&&i===e&&1===t&&2===n&&r!==e}catch(t){return!1}}(),h="".split,d=Math.max,g=f.bind,m=f.call,v=b?g.call(m,h):function(t,n){return h.call(t,n)},S=function(t){return p()(t)?v(t,""):t},w=function(t,n){var r=arguments.length>2?arguments[2]:[];if("string"!=typeof t&&f(t))return r;for(var e=a?t:S(t),o=e.length,u=d(0,n)||0;u<o;u+=1)r[r.length]=t[u];return r};function j(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var r=[],e=!0,o=!1,u=void 0;try{for(var i,c=t[Symbol.iterator]();!(e=(i=c.next()).done)&&(r.push(i.value),!n||r.length!==n);e=!0);}catch(t){o=!0,u=t}finally{try{e||null==c.return||c.return()}finally{if(o)throw u}}return r}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var O=w.bind,$=w.call,x={},P=x.constructor,T=x.toString,_=function(t,n){return t>=n?t:n},E=function(t){if("function"!=typeof t&&"[object Function]"!==T.apply(t))throw new TypeError("bind called on incompatible "+t)},M=[function(t){return function(){return t.apply(this,w(arguments))}},function(t,n){return function(r){return t.apply(this,w(arguments,n,[r]))}},function(t,n){return function(r,e){return t.apply(this,w(arguments,n,[r,e]))}},function(t,n){return function(r,e,o){return t.apply(this,w(arguments,n,[r,e,o]))}},function(t,n){return function(r,e,o,u){return t.apply(this,w(arguments,n,[r,e,o,u]))}},function(t,n){return function(r,e,o,u,i){return t.apply(this,w(arguments,n,[r,e,o,u,i]))}},function(t,n){return function(r,e,o,u,i,c){return t.apply(this,w(arguments,n,[r,e,o,u,i,c]))}},function(t,n){return function(r,e,o,u,i,c,f){return t.apply(this,w(arguments,n,[r,e,o,u,i,c,f]))}},function(t,n){return function(r,e,o,u,i,c,f,l){return t.apply(this,w(arguments,n,[r,e,o,u,i,c,f,l]))}}],F=function(t){var n=j(t,3),r=n[0],e=n[1],o=n[2],u=_(0,e.length-_(0,o.length-2)),i=M[u],c=i?i(r,u):M[0](r);if(e.prototype){var f=function(){};f.prototype=e.prototype,c.prototype=new f,f.prototype=null}return c},k=function(t,n){var r=t.apply(this,n);return P(r)===r?r:this},A=b?$.bind(O):function(t,n){E(t);var r,e=arguments,o=function(){var o=w(arguments,0,w(e,2));return this instanceof r?k.apply(this,[t,o]):t.apply(n,o)};return r=F([o,t,e])},C=TypeError,D=A.apply,I=A(A.call,D),N=A(D,{}.toString),X=function(t){if("function"!=typeof t&&"[object Function]"!==N(t))throw new C(t+" is not a function");return t},G=function(t,n){return I(X(t),n,w(arguments[2]))},q=function(t){try{return{threw:!1,value:G(t,this,w(arguments,1))}}catch(t){return{threw:!0,value:t}}},z=r(1),B=r.n(z);var H,J=q(function(){return function(t,n){if(t!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&B()(Symbol(""))}.bind(void 0)),K=!1===J.threw&&!0===J.value,L={}.constructor.getOwnPropertySymbols;if(K&&L&&"function"==typeof L){var Q=Symbol(""),R={a:1};R[Q]=2;var U=q(L,R);H=!1===U.threw&&U.value&&1===U.value.length&&U.value[0]===Q}n.default=function(t){var n=i(t);return H?L(n):[]}}])});
//# sourceMappingURL=get-own-property-symbols-x.min.js.map