Marketplace móvil para negocios locales mexicanos. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React Web) - apps/mobile (Expo/React Native) - apps/mcp-server (Claude MCP Server) - apps/whatsapp-service (WhatsApp Business API) - database/ (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
27 lines
663 B
JavaScript
27 lines
663 B
JavaScript
"use strict";
|
|
|
|
/**
|
|
* Returns true when fn returns true for all members of obj.
|
|
* This is an every implementation that works for all iterables
|
|
* @param {object} obj
|
|
* @param {Function} fn
|
|
* @returns {boolean}
|
|
*/
|
|
module.exports = function every(obj, fn) {
|
|
var pass = true;
|
|
|
|
try {
|
|
// eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods
|
|
obj.forEach(function () {
|
|
if (!fn.apply(this, arguments)) {
|
|
// Throwing an error is the only way to break `forEach`
|
|
throw new Error();
|
|
}
|
|
});
|
|
} catch (e) {
|
|
pass = false;
|
|
}
|
|
|
|
return pass;
|
|
};
|