Options
All
  • Public
  • Public/Protected
  • All
Menu

Module functions

Index

References

Functions Object

References

Renames and re-exports functions

Object Functions

  • functions(object: any): string[]
  • Creates an array of function property names from own enumerable properties of object.

    since

    5.12.0

    see

    [[functionsIn]]

    example
    function Foo() {
    this.a = () => 'a'
    this.b = () => 'b'
    }

    Foo.prototype.c = () => 'c'

    functions(new Foo)
    // => ['a', 'b']

    Parameters

    • object: any

      The object to inspect.

    Returns string[]

    Returns the function names.