Skip to main content

asyncNoop

An async function that does nothing and returns Promise<void>.


Code

🔗 View source code


Interface

typescript
const asyncNoop: () => Promise<void>;

Usage

typescript
import { asyncNoop } from '@modern-kit/utils';

const handleAsyncClick = (callback = asyncNoop) => {
callback();
};