@polkadot/util
Version:
A collection of useful utilities for @polkadot
18 lines (17 loc) • 417 B
JavaScript
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;
;