1.0.1 • Published 10 years ago

object-methods v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

object-methods

Get the list of all of an object's own methods

Build Status

Installation

via npm

$ npm install object-methods

or via git

$ git clone https://github.com/seerdomin/object-methods

Usage

var objectMethods = require('object-methods');

var obj = {
    'foo': function foo(str) {
        console.log('foo', str);
    },

    'bar': function bar(str) {
        console.log('bar', str);
    },

    'ignored': true
};

var methods = objectMethods(obj);

console.log(methods);
// => ["foo", "bar"]

License

This library is distributed under the MIT License.

1.0.1

10 years ago

1.0.0

10 years ago