UNPKG

@ai-sdk/rsc

Version:

[React Server Components](https://react.dev/reference/rsc/server-components) for the [AI SDK](https://ai-sdk.dev/docs):

9 lines (8 loc) 271 B
/** * Checks if the given value is a function. * * @param {unknown} value - The value to check. * @returns {boolean} True if the value is a function, false otherwise. */ export const isFunction = (value: unknown): value is Function => typeof value === 'function';