source: node_modules/es-toolkit/dist/object/findKey.mjs

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

Added visualizations

  • Property mode set to 100644
File size: 153 bytes
RevLine 
[a762898]1function findKey(obj, predicate) {
2 const keys = Object.keys(obj);
3 return keys.find(key => predicate(obj[key], key, obj));
4}
5
6export { findKey };
Note: See TracBrowser for help on using the repository browser.