folktale-lodash-bug

node v8.17.0
version: 1.0.0
endpointsharetweet
const union = require('folktale/adt/union/union') const isPlainObject = require('lodash/isPlainObject') const TestUnion = union('TestUnion', { Working: function () { }, NotWorking() { } }) // Works isPlainObject(TestUnion.Working()) // Throws "TypeError: Function has non-object prototype 'undefined' in instanceof check" isPlainObject(TestUnion.NotWorking())
Loading…

no comments

    sign in to comment