source: node_modules/es-toolkit/dist/compat/object/findKey.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: 433 bytes
Line 
1import { findKey as findKey$1 } from '../../object/findKey.mjs';
2import { identity } from '../function/identity.mjs';
3import { isObject } from '../predicate/isObject.mjs';
4import { iteratee } from '../util/iteratee.mjs';
5
6function findKey(obj, predicate) {
7 if (!isObject(obj)) {
8 return undefined;
9 }
10 const iteratee$1 = iteratee(predicate ?? identity);
11 return findKey$1(obj, iteratee$1);
12}
13
14export { findKey };
Note: See TracBrowser for help on using the repository browser.