mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-23 04:59:26 +08:00
Add node modules and compiled JavaScript from main (#172)
Co-authored-by: Oliver King <oking3@uncc.edu>
This commit is contained in:
committed by
GitHub
parent
ee3c5aed75
commit
08d466b6ab
+12
@@ -0,0 +1,12 @@
|
||||
import cb from './_cb.js';
|
||||
import keys from './keys.js';
|
||||
|
||||
// Returns the first key on an object that passes a truth test.
|
||||
export default 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user