UNPKG

@n3okill/utils

Version:
16 lines 387 B
/** * @internal */ import { isFunction } from "./type/isFunction"; /** * Check if a transformation function should be applied to an object * @internal * @param value * @param transform * @param key * @returns */ export const _checkTransform = (value, transform, key) => { return isFunction(transform) ? transform(value, key) : value; }; //# sourceMappingURL=_internal.js.map