UtilOptional

noop

A shared function that does nothing, for a callback slot with no handler yet.

Usage

import { noop } from 'ngwr/utils';

class MyService {
  private onChange: (v: string) => void = noop;
}

API

NameDescriptionTypeDefault
noop()Does nothing. Use it as the default for a callback slot.() => void—

See also