* This method is like `_.set` except that accepts `updater` to produce the * value to set. Use `_.updateWith` to customize `path` creation. The `updater` * is invoked with one argument: (value). * * **Note:** This method mutates `object`. * * @static * @memberOf _
(object, path, updater)
| 13966 | * // => 0 |
| 13967 | */ |
| 13968 | function update(object, path, updater) { |
| 13969 | return object == null ? object : baseUpdate(object, path, castFunction(updater)); |
| 13970 | } |
| 13971 | |
| 13972 | /** |
| 13973 | * This method is like `_.update` except that it accepts `customizer` which is |
nothing calls this directly
no test coverage detected