UNPKG

reactstrap-date-picker

Version:

Reactstrap based, zero dependencies, date picker

16 lines (15 loc) 476 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getMaybeFuncValue = void 0; var getMaybeFuncValue = value => { var tag = Object.prototype.toString.call(value); var isFunction = tag === '[object AsyncFunction]' || tag === '[object Function]' || tag === '[object GeneratorFunction]' || tag === '[object Proxy]'; if (isFunction) { return value(); } else { return value; } }; exports.getMaybeFuncValue = getMaybeFuncValue;