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.

6 lines (5 loc) 182 B
/** * Choose action/value based on first truthy condition. * @author @dailker */ export declare function decideByPriority<T>(pairs: Array<[boolean, T]>, defaultValue: T): T;