Sha256: ac0fc64921eaadf8d2b9cfda5652720f1b57db86bb51004267db37cccfe03225
Contents?: true
Size: 411 Bytes
Versions: 26
Compression:
Stored size: 411 Bytes
Contents
import { isIterable } from './isIterable' test('returns true given an iterator', () => { expect( isIterable( (function* () { yield 2 })(), ), ).toEqual(true) }) test('returns false given a regular function', () => { expect( isIterable( (function () { return null })(), ), ).toEqual(false) expect(isIterable((() => null)())).toEqual(false) })
Version data entries
26 entries across 26 versions & 1 rubygems