mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-24 13:39:27 +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
+10
@@ -0,0 +1,10 @@
|
||||
import isArrayLike from './_isArrayLike.js';
|
||||
import findIndex from './findIndex.js';
|
||||
import findKey from './findKey.js';
|
||||
|
||||
// Return the first value which passes a truth test.
|
||||
export default function find(obj, predicate, context) {
|
||||
var keyFinder = isArrayLike(obj) ? findIndex : findKey;
|
||||
var key = keyFinder(obj, predicate, context);
|
||||
if (key !== void 0 && key !== -1) return obj[key];
|
||||
}
|
||||
Reference in New Issue
Block a user