|
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 | |
|---|
| 1 | import { findKey as findKey$1 } from '../../object/findKey.mjs';
|
|---|
| 2 | import { identity } from '../function/identity.mjs';
|
|---|
| 3 | import { isObject } from '../predicate/isObject.mjs';
|
|---|
| 4 | import { iteratee } from '../util/iteratee.mjs';
|
|---|
| 5 |
|
|---|
| 6 | function 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 |
|
|---|
| 14 | export { findKey };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.