mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 02:07:56 +00:00
17 lines
375 B
JavaScript
17 lines
375 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.identity = identity;
|
|
exports.noop = noop;
|
|
/**
|
|
* A sharable identity function. Returns the input as-is with no transformation applied.
|
|
*/
|
|
function identity(value) {
|
|
return value;
|
|
}
|
|
/**
|
|
* A sharable noop function. As the name suggests, does nothing
|
|
*/
|
|
function noop() {
|
|
// noop
|
|
}
|