UNPKG

lore-utils

Version:

Functions and files used across multiple Lore packages

12 lines (8 loc) 251 B
import _isFunction from 'lodash/isFunction'; export default function (target) { var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; if (_isFunction(target)) { return target(options); } return target; }