source: imaps-frontend/node_modules/lodash-es/_baseUpdate.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 603 bytes
Line 
1import baseGet from './_baseGet.js';
2import baseSet from './_baseSet.js';
3
4/**
5 * The base implementation of `_.update`.
6 *
7 * @private
8 * @param {Object} object The object to modify.
9 * @param {Array|string} path The path of the property to update.
10 * @param {Function} updater The function to produce the updated value.
11 * @param {Function} [customizer] The function to customize path creation.
12 * @returns {Object} Returns `object`.
13 */
14function baseUpdate(object, path, updater, customizer) {
15 return baseSet(object, path, updater(baseGet(object, path)), customizer);
16}
17
18export default baseUpdate;
Note: See TracBrowser for help on using the repository browser.