mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-26 06:39:27 +08:00
Add node modules and new code for release (#168)
Co-authored-by: OliverMKing <OliverMKing@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ca8d2604ac
commit
a0f00e5017
+12
@@ -0,0 +1,12 @@
|
||||
var _isArrayLike = require('./_isArrayLike.js');
|
||||
var findIndex = require('./findIndex.js');
|
||||
var findKey = require('./findKey.js');
|
||||
|
||||
// Return the first value which passes a truth test.
|
||||
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];
|
||||
}
|
||||
|
||||
module.exports = find;
|
||||
Reference in New Issue
Block a user