UNPKG

forc

Version:

Clone of Clojure list comprehension

19 lines (16 loc) 415 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.isFunction = isFunction; exports.isIterable = isIterable; exports.isUndefined = isUndefined; function isFunction(value) { return typeof value === 'function'; } function isIterable(value) { return value != null && isFunction(value[Symbol.iterator]); } function isUndefined(value) { return typeof value === 'undefined'; }