Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Shallow variant #10

Open
Svish opened this issue Feb 1, 2019 · 0 comments
Open

Shallow variant #10

Svish opened this issue Feb 1, 2019 · 0 comments

Comments

@Svish
Copy link

Svish commented Feb 1, 2019

Would it be possible to get a flag or variant of this which doesn't work recursively? Specifically, from the examples in the README, the following to be false, not true:

isSubset(
  {a: 1, bcd: [1, 2, 3]},
  {a: 1, bcd: [1, 2]}
);

I.e. false because the value (the array) of bcd is not equal.

@Svish Svish changed the title Shallow flag Shallow variant Feb 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant