UNPKG

dina-agi

Version:

DINA AGI - Dynamic Intelligence Network Architecture. 128 Autonomous Agents with Claude Flow, Swarms, and 300+ MCPs. True AGI System.

13 lines (10 loc) 412 B
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;