mirror of
https://github.com/stCarolas/setup-maven.git
synced 2026-10-02 01:21:33 +00:00
chore: update dependencies
This commit is contained in:
761 files changed
+34401
-7527
No files matched your search
+14
@@ -0,0 +1,14 @@
|
||||
var _cb = require('./_cb.js');
|
||||
var keys = require('./keys.js');
|
||||
|
||||
// Returns the first key on an object that passes a truth test.
|
||||
function findKey(obj, predicate, context) {
|
||||
predicate = _cb(predicate, context);
|
||||
var _keys = keys(obj), key;
|
||||
for (var i = 0, length = _keys.length; i < length; i++) {
|
||||
key = _keys[i];
|
||||
if (predicate(obj[key], key, obj)) return key;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = findKey;
|
||||
Reference in new issue
Block a user