UNPKG

dina-agi

Version:

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

16 lines (12 loc) 408 B
define(['./_cb', './keys'], function (_cb, keys) { // 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; } } return findKey; });