Files
cannaiq/frontend/node_modules/es-toolkit/dist/object/findKey.js
2025-11-28 19:45:44 -07:00

11 lines
249 B
JavaScript

'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
function findKey(obj, predicate) {
const keys = Object.keys(obj);
return keys.find(key => predicate(obj[key], key, obj));
}
exports.findKey = findKey;