The No Operation function.
Syntax
import { noop } from '@opentf/std';
noop(): undefined;
Examples
noop(); //=> undefined
function test(cb) {
const fn = cb || noop;
fn();
}
test(); // It can safely calls the callback fn
Try
Last updated on