source: node_modules/es-toolkit/dist/object/omitBy.mjs@ ba17441

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

Added visualizations

  • Property mode set to 100644
File size: 327 bytes
Line 
1function omitBy(obj, shouldOmit) {
2 const result = {};
3 const keys = Object.keys(obj);
4 for (let i = 0; i < keys.length; i++) {
5 const key = keys[i];
6 const value = obj[key];
7 if (!shouldOmit(value, key)) {
8 result[key] = value;
9 }
10 }
11 return result;
12}
13
14export { omitBy };
Note: See TracBrowser for help on using the repository browser.