source: node_modules/es-toolkit/dist/object/omitBy.js@ a762898

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

Added visualizations

  • Property mode set to 100644
File size: 422 bytes
RevLine 
[a762898]1'use strict';
2
3Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
5function omitBy(obj, shouldOmit) {
6 const result = {};
7 const keys = Object.keys(obj);
8 for (let i = 0; i < keys.length; i++) {
9 const key = keys[i];
10 const value = obj[key];
11 if (!shouldOmit(value, key)) {
12 result[key] = value;
13 }
14 }
15 return result;
16}
17
18exports.omitBy = omitBy;
Note: See TracBrowser for help on using the repository browser.