UNPKG

si-funciona

Version:

Funciones de utilidad para uso general. [General usage utility functions.]

15 lines (14 loc) 538 B
import 'core-js/stable'; type settableItem = Array<any> | { [k: number | string]: any; }; /** * Set a value on an item, then return the value * @memberOf module:objectHelpers * @param {Object|Array} item - An object or array to be updated * @param {string|number} key - The key on the item which will have its value set * @param {*} value - Any value to be applied to the key * @returns {*} */ declare const setAndReturnValue: (item: settableItem, key: keyof settableItem, value: any) => any; export default setAndReturnValue;