mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 06:31:03 +00:00
1 line
2.6 KiB
Plaintext
1 line
2.6 KiB
Plaintext
{"dependencies":[{"name":"./class.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":37,"index":37}}],"key":"nDWPIJjsQzx+SONQ0T/o5CLrR+Y=","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 var _classJs = 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, _classJs.isClass)(Child) && (0, _classJs.isClass)(Parent)\n // eslint-disable-next-line no-prototype-builtins\n ? Parent === Child || Parent.isPrototypeOf(Child) : false;\n }\n});","lineCount":30,"map":[[7,2,17,0,"exports"],[7,9,17,0],[7,10,17,0,"isChildClass"],[7,22,17,0],[7,25,17,0,"isChildClass"],[7,37,17,0],[8,2,1,0],[8,6,1,0,"_classJs"],[8,14,1,0],[8,17,1,0,"require"],[8,24,1,0],[8,25,1,0,"_dependencyMap"],[8,39,1,0],[9,2,2,0],[10,0,3,0],[11,0,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,0,10,0],[18,0,11,0],[19,0,12,0],[20,0,13,0],[21,0,14,0],[22,0,15,0],[23,0,16,0],[24,2,17,7],[24,11,17,16,"isChildClass"],[24,23,17,28,"isChildClass"],[24,24,17,29,"Parent"],[24,30,17,35],[24,32,17,37,"Child"],[24,37,17,42],[24,39,17,44],[25,4,18,4],[26,4,19,4],[26,11,19,11],[26,15,19,11,"isClass"],[26,23,19,18],[26,24,19,18,"isClass"],[26,31,19,18],[26,33,19,19,"Child"],[26,38,19,24],[26,39,19,25],[26,43,19,29],[26,47,19,29,"isClass"],[26,55,19,36],[26,56,19,36,"isClass"],[26,63,19,36],[26,65,19,37,"Parent"],[26,71,19,43],[27,4,20,8],[28,4,20,8],[28,6,21,10,"Parent"],[28,12,21,16],[28,17,21,21,"Child"],[28,22,21,26],[28,26,21,30,"Parent"],[28,32,21,36],[28,33,21,37,"isPrototypeOf"],[28,46,21,50],[28,47,21,51,"Child"],[28,52,21,56],[28,53,21,57],[28,56,22,10],[28,61,22,15],[29,2,23,0],[30,0,23,1],[30,3]],"functionMap":{"names":["<global>","isChildClass"],"mappings":"AAA;OCgB;CDM"},"hasCjsExports":false},"type":"js/module"}]} |