@n3okill/utils
Version:
Many javascript helpers
16 lines • 387 B
JavaScript
/**
* @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