Thursday, 1 June 2017

Is lodash find suppose to behave differently in the browser than node?

Chrome = 58.0.3029.110; Node = 6.9.2; Lodash = 4.17.4 Used lodash-cli to build.

In node:

_.find([{n:1},{n:2}], {n:3});
> []

In browser

_.find([{n:1},{n:2}], {n:3});
> undefined

I don't think that this is suppose to happen... Am I doing something wrong?



via JemiloII

No comments:

Post a Comment