source: trip-planner-front/node_modules/lodash/_baseUpdate.js@ 6c1585f

Last change on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 605 bytes
Line 
1var baseGet = require('./_baseGet'),
2 baseSet = require('./_baseSet');
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
18module.exports = baseUpdate;
Note: See TracBrowser for help on using the repository browser.