@nevware21/ts-utils
    Preparing search index...

    Function objValues

    • The objValues() returns an array whose elements are values of enumerable string-keyed properties found directly upon object. This is the same as iterating with a for...in loop, except that a for...in loop enumerates properties in the prototype chain as well. The order of the array returned by objValues() is the same as that provided by a for...in loop.

      If you need the property keys, use objKeys() instead. If you need both the property keys and values, use objEntries() instead.

      Type Parameters

      • T = any

      Parameters

      • value: {} | { [s: string]: T } | ArrayLike<T>

        The object that contains the properties and methods.

      Returns T[]

      An array containing the given object's own enumerable string-keyed property values.

      0.9.7

      objValues({ Hello: "Darkness", my: "old", friend: "." });
      // [ "Darkness", "old", "." ]

      // Array-like object
      objValues({ 0: "a", 1: "b", 2: "c" }));
      // [ 'a', 'b', 'c']

      // Array-like object with random key ordering
      objValues({ 100: "a", 2: "b", 7: "c" });
      // [ 'b', 'c', 'a']