type-plus
Version:
Provides additional types for TypeScript.
10 lines • 348 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.findKey = void 0;
function findKey(subject, predicate, thisArg) {
return Object.keys(subject).find(function (k, i, a) {
return predicate.apply(this, [k, i, a, subject]);
}, thisArg);
}
exports.findKey = findKey;
//# sourceMappingURL=findKey.js.map