Socket
Book a DemoInstallSign in
Socket

method-names

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

method-names

Returns an array of function property names from all enumerable properties on an object, own and inherited.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
52
Maintainers
1
Weekly downloads
 
Created
Source

method-names NPM version

Returns an array of function property names from all enumerable properties on an object, own and inherited.

This is loosely based on the _.functions method from Lo-Dash.

Install

Install with npm:

npm i method-names --save-dev

Usage

Returns an array of function property names from all enumerable properties on an object, own and inherited.

var methods = require('method-names');
console.log(methods(require('chai')));
//=> [ 'AssertionError', 'use', 'Assertion', 'expect', 'should', 'Should', 'assert' ]
  • obj {Object}: The object to inspect.

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license

This file was generated by verb-cli on July 04, 2014.

Keywords

enumerable

FAQs

Package last updated on 04 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts