UNPKG

everyutil

Version:

A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.

12 lines (11 loc) 295 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.countTruthy = void 0; /** * Count how many arguments are truthy. * @author @dailker */ function countTruthy(...args) { return args.filter(Boolean).length; } exports.countTruthy = countTruthy;