mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 14:31:02 +00:00
1 line
2.9 KiB
Plaintext
1 line
2.9 KiB
Plaintext
{"dependencies":[{"name":"./class.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":19,"index":133},"end":{"line":4,"column":40,"index":154}}],"key":"hr8SWx25kSzNXEy+30aPMG7zoCM=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.isChildClass = isChildClass;\n const class_js_1 = require(_dependencyMap[0], \"./class.js\");\n /**\n * @name isChildClass\n * @summary Tests if the child extends the parent Class\n * @description\n * Checks to see if the child Class extends the parent Class\n * @example\n * <BR>\n *\n * ```javascript\n * import { isChildClass } from '@polkadot/util';\n *\n * console.log('isChildClass', isChildClass(BN, BN); // => true\n * console.log('isChildClass', isChildClass(BN, Uint8Array); // => false\n * ```\n */\n function isChildClass(Parent, Child) {\n // https://stackoverflow.com/questions/30993434/check-if-a-constructor-inherits-another-in-es6/30993664\n return (0, class_js_1.isClass)(Child) && (0, class_js_1.isClass)(Parent)\n // eslint-disable-next-line no-prototype-builtins\n ? Parent === Child || Parent.isPrototypeOf(Child) : false;\n }\n});","lineCount":30,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"isChildClass"],[7,22,3,20],[7,25,3,23,"isChildClass"],[7,37,3,35],[8,2,4,0],[8,8,4,6,"class_js_1"],[8,18,4,16],[8,21,4,19,"require"],[8,28,4,26],[8,29,4,26,"_dependencyMap"],[8,43,4,26],[8,60,4,39],[8,61,4,40],[9,2,5,0],[10,0,6,0],[11,0,7,0],[12,0,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,0,13,0],[18,0,14,0],[19,0,15,0],[20,0,16,0],[21,0,17,0],[22,0,18,0],[23,0,19,0],[24,2,20,0],[24,11,20,9,"isChildClass"],[24,23,20,21,"isChildClass"],[24,24,20,22,"Parent"],[24,30,20,28],[24,32,20,30,"Child"],[24,37,20,35],[24,39,20,37],[25,4,21,4],[26,4,22,4],[26,11,22,11],[26,12,22,12],[26,13,22,13],[26,15,22,15,"class_js_1"],[26,25,22,25],[26,26,22,26,"isClass"],[26,33,22,33],[26,35,22,35,"Child"],[26,40,22,40],[26,41,22,41],[26,45,22,45],[26,46,22,46],[26,47,22,47],[26,49,22,49,"class_js_1"],[26,59,22,59],[26,60,22,60,"isClass"],[26,67,22,67],[26,69,22,69,"Parent"],[26,75,22,75],[27,4,23,8],[28,4,23,8],[28,6,24,10,"Parent"],[28,12,24,16],[28,17,24,21,"Child"],[28,22,24,26],[28,26,24,30,"Parent"],[28,32,24,36],[28,33,24,37,"isPrototypeOf"],[28,46,24,50],[28,47,24,51,"Child"],[28,52,24,56],[28,53,24,57],[28,56,25,10],[28,61,25,15],[29,2,26,0],[30,0,26,1],[30,3]],"functionMap":{"names":["<global>","isChildClass"],"mappings":"AAA;ACmB;CDM"},"hasCjsExports":true},"type":"js/module"}]} |