source: node_modules/es-toolkit/dist/compat/object/cloneWith.js

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 395 bytes
Line 
1'use strict';
2
3Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
5const clone = require('./clone.js');
6
7function cloneWith(value, customizer) {
8 if (!customizer) {
9 return clone.clone(value);
10 }
11 const result = customizer(value);
12 if (result !== undefined) {
13 return result;
14 }
15 return clone.clone(value);
16}
17
18exports.cloneWith = cloneWith;
Note: See TracBrowser for help on using the repository browser.