Skip to content

jimmy-guzman/utils

Repository files navigation

actions version downloads Code Coverage

@jimmy-guzman/utils

🗄️ Collection of utilities used throughout personal projects

➕ Install

npm i @jimmy-guzman/utils

Or with yarn

yarn add @jimmy-guzman/utils

Or with pnpm

pnpm add @jimmy-guzman/utils

📝 Usage

import { asyncFilter } from '@jimmy-guzman/utils'

const isDivisibleBy2 = async (num: number) => Promise.resolve(num % 2 === 0)

await asyncFilter([2, 4, 1, 8, 3], isDivisibleBy2)

See docs for available utils