Skip to main content

noop

A function that does nothing and returns undefined.


Code​

🔗 View source code


Interface​

typescript
const noop: () => void

Usage​

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

const handleClick = (callback = noop) => {
callback();
};