Sha256: 66de044bd9356189a3d9e438748585dd0b4a7e4120448ac6f6cd898a21b068f5
Contents?: true
Size: 605 Bytes
Versions: 274
Compression:
Stored size: 605 Bytes
Contents
var baseGet = require('./_baseGet'), baseSet = require('./_baseSet'); /** * The base implementation of `_.update`. * * @private * @param {Object} object The object to modify. * @param {Array|string} path The path of the property to update. * @param {Function} updater The function to produce the updated value. * @param {Function} [customizer] The function to customize path creation. * @returns {Object} Returns `object`. */ function baseUpdate(object, path, updater, customizer) { return baseSet(object, path, updater(baseGet(object, path)), customizer); } module.exports = baseUpdate;
Version data entries
274 entries across 272 versions & 30 rubygems