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

19 lines (18 loc) 737 B
/**----------------------------------------------------------------------------------------- * Copyright © 2023 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;