• Version 3.0.5
  • Published
  • 5.99 kB
  • No dependencies
  • MIT license


npm i @types/get-value
yarn add @types/get-value
pnpm add @types/get-value


TypeScript definitions for get-value



function get

get: {
<T>(obj: T): T;
(obj: object, key: string | string[], options?: get.Options): any;


    interface Options

    interface Options {}

      property default

      default?: any;
      • The default value to return when get-value cannot result a value from the given object.

        default: undefined

      property isValid

      | (<K extends string>(key: K, object: Record<K, any>) => boolean)
      | undefined;
      • If defined, this function is called on each resolved value. Useful if you want to do .hasOwnProperty or Object.prototype.propertyIsEnumerable.

      property join

      join?: ((segs: string[]) => string) | undefined;
      • Customize how the object path is created when iterating over path segments.

        default: Array.join

      property joinChar

      joinChar?: string | undefined;
      • The character to use when re-joining the string to check for keys with dots in them (this is probably not needed when options.join is used). This can be a different value than the separator, since the separator can be a string or regex.

        default: "."

      property separator

      separator?: string | RegExp | undefined;
      • The separator to use for spliting the string. (this is probably not needed when options.split is used).

        default: "."

      property split

      split?: ((s: string) => string[]) | undefined;
      • Custom function to use for splitting the string into object path segments.

        default: String.split

      Package Files (1)

      Dependencies (0)

      No dependencies.

      Dev Dependencies (0)

      No dev dependencies.

      Peer Dependencies (0)

      No peer dependencies.


      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/get-value.

      • Markdown
      • HTML
        <a href="https://www.jsdocs.io/package/@types/get-value"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>