/** * @name getMethods * @namespace shared.class * @type Function * @platform js * @platform node * @status beta * * This function take an instance as parameter and return all the methods in array format * * @param {Object} instance The instance of the object to get the methods names of * @return {Array} A simple array of all the methods names * * @todo tests * * @snippet __getMethods($1) * * @example js * import { __getMethods } from '@lotsof/sugar/class'; * myClass { * constructor() {} * hello() {} * world() {} * } * const myInstance = new myClass(); * __getMethods(myInstance); // => ['hello','world'] * * @since 1.0.0 * @author Olivier Bossel (https://lotsof.dev) */ export default function __getMethods(toCheck: any): string[];