This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasisWarden-Legacy/node_modules/es-toolkit/dist/object/findKey.js
T

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;