UNPKG

@progress/kendo-react-common

Version:

React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package

22 lines (21 loc) 759 B
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ /** * Can be used for getting value from object using field path. For example `users[index].name`. * * @example * ```jsx-no-run * const values = {users:[{lastName: 'Doe'}]}; * const firstUserLastName = getter('user[0].lastName'); * * console.log(firstUserLastName(values)) * * // result: 'Doe' * ``` */ export declare function getter(field: string): (values: any) => any;