UtilUpdated in v16Optional

wrNoop

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

Usage

import { wrNoop } from 'ngwr/utils';

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

API

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

See also