UNPKG

@polkadot/util

Version:
18 lines (17 loc) 417 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.noop = exports.identity = void 0; /** * A sharable identity function. Returns the input as-is with no transformation applied. */ function identity(value) { return value; } exports.identity = identity; /** * A sharable noop function. As the name suggests, does nothing */ function noop() { // noop } exports.noop = noop;