UNPKG

@sustain/core

Version:

Sustain is a Framework that is barely used despedcies to make stable and sustainable apps

16 lines 731 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getControllersMethods = void 0; function getControllersMethods(obj) { let props = []; do { const l = Object.getOwnPropertyNames(obj) .concat(Object.getOwnPropertySymbols(obj).map(s => s.toString())) .sort() .filter((p, i, arr) => typeof obj[p] === 'function' && p !== 'constructor' && (i == 0 || p !== arr[i - 1]) && props.indexOf(p) === -1); props = props.concat(l); } while ((obj = Object.getPrototypeOf(obj)) && Object.getPrototypeOf(obj)); return props; } exports.getControllersMethods = getControllersMethods; //# sourceMappingURL=extract-methods.util.js.map