00001 var baseUpdate = require('./_baseUpdate'), 00002 castFunction = require('./_castFunction'); 00003 00028 function updateWith(object, path, updater, customizer) { 00029 customizer = typeof customizer == 'function' ? customizer : undefined; 00030 return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer); 00031 } 00032 00033 module.exports = updateWith;