Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/entries-in/docs/types/index.d"

Index

Type aliases

Functions

Type aliases

KeyValuePair

KeyValuePair: [string, any]

Two-element array holding a key and corresponding value.

Functions

Export assignment objectEntriesIn

  • Returns an array of an object's own and inherited enumerable property [key, value] pairs.

    Parameters

    • obj: any

      input object

    Returns Array < KeyValuePair >

    array containing key-value pairs

    Example

    function Foo() {
        this.beep = 'boop';
        return this;
    }
    
    Foo.prototype.foo = 'bar';
    
    var obj = new Foo();
    
    var entries = objectEntriesIn( obj );
    // e.g., returns [ ['beep', 'boop'], ['foo', 'bar'] ]