Nervously Proposing Marriage

    object-methods

    1.0.1 • Public • Published

    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.

    Install

    npm i object-methods

    DownloadsWeekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • seerdomin