import isFunction from './isFunction.js'; export default function(_: T | (() => T)): () => T { return isFunction(_) ? _ : () => _; }