Skip to main content

noop

A function that does nothing and returns undefined.


Interface​

const noop: () => void

Usage​

import { noop } from '@devgrace/utils';

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