@appolo/utils
Advanced tools
Comparing version 8.0.1 to 8.0.2
@@ -28,4 +28,8 @@ "use strict"; | ||
} | ||
static getClassMethodsName(klass) { | ||
let names = Object.getOwnPropertyNames(klass.prototype).filter(name => (name !== 'constructor' && typeof klass.prototype[name] === 'function')); | ||
return names; | ||
} | ||
} | ||
exports.Classes = Classes; | ||
//# sourceMappingURL=classes.js.map |
@@ -34,20 +34,7 @@ import {Arrays} from "./arrays"; | ||
// public static getAllClassMethods(klass:(new(...args: any[])=> any)):string[] { | ||
// let props = []; | ||
// let obj = klass; | ||
// do { | ||
// | ||
// let keys = Object.getOwnPropertyDescriptors(obj); | ||
// | ||
// for(let i =0;i<keys.length;i++){ | ||
// | ||
// } | ||
// | ||
// props = props.concat(); | ||
// } while (obj = Object.getPrototypeOf(obj)); | ||
// | ||
// // return props.sort().filter(function(e, i, arr) { | ||
// // if (e!=arr[i+1] && typeof toCheck[e] == 'function') return true; | ||
// // }); | ||
// } | ||
public static getClassMethodsName(klass:(new(...args: any[])=> any)):string[] { | ||
let names = Object.getOwnPropertyNames( klass.prototype ).filter(name => (name !== 'constructor' && typeof klass.prototype[name] === 'function')) | ||
return names; | ||
} | ||
} |
@@ -20,3 +20,3 @@ { | ||
"main": "./index.js", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"license": "MIT", | ||
@@ -23,0 +23,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
130398
2328