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

24 lines (23 loc) 806 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 setting value to object using field path. For example `users[index].name`. * * @example * ```jsx-no-run * const values = {users:[{lastName: 'Doe'}]}; * const firstUserFirstName = setter('user[0].firstName'); * * firstUserFirstName(values, 'John'); * * console.log(values) * * // result: {users:[{firstName: 'John', lastName: 'Doe'}]} * ``` */ export declare function setter(field: string): any;