user-defined-methods

1.0.0 • Public • Published

Returns all user defined methods from an object.

Code copied/adjusted from following,

Usage:

const userDefinedMethods = require('user-defined-methods');

class Driver {
  getLocation() {
    return location.href;
  }
}

userDefinedMethods(new Driver()) // returns ['getLocation']

Readme

Keywords

none

Package Sidebar

Install

npm i user-defined-methods

Weekly Downloads

8

Version

1.0.0

License

MIT

Unpacked Size

1.3 kB

Total Files

3

Last publish

Collaborators

  • entrptaher