@n3okill/utils
Version:
Many javascript helpers
20 lines • 555 B
JavaScript
/**
* @internal
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports._checkTransform = void 0;
const isFunction_1 = require("./type/isFunction");
/**
* Check if a transformation function should be applied to an object
* @internal
* @param value
* @param transform
* @param key
* @returns
*/
const _checkTransform = (value, transform, key) => {
return (0, isFunction_1.isFunction)(transform) ? transform(value, key) : value;
};
exports._checkTransform = _checkTransform;
//# sourceMappingURL=_internal.js.map
;