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

isSubset returns false when a child array's component is of a different order #8

Open
blacksoil opened this issue Nov 21, 2016 · 3 comments

Comments

@blacksoil
Copy link

It returns false on the following case, where it should've been true.

SUPERSET:
[ { id: 1,
short_name: 'apple',
long_name: 'pen pinapple apple pen',
picture_urls: [ 'fake url 1a', 'fake url 1b' ] },
{ id: 2,
short_name: 'banana',
long_name: 'cavendish banana',
picture_urls: [ 'fake url 2b', 'fake url 2a' ] } ]

SUBSET:
[ { short_name: 'apple',
long_name: 'pen pinapple apple pen',
picture_urls: [ 'fake url 1a', 'fake url 1b' ] },
{ short_name: 'banana',
long_name: 'cavendish banana',
picture_urls: [ 'fake url 2a', 'fake url 2b' ] } ]

@Undistraction
Copy link

This would make a nice option: Allow the order of array items to be ignored.

@bushong1
Copy link

bushong1 commented Jun 7, 2017

For some reason this is expected behavior as documented in the README...

@ahmed-shahrour
Copy link

Any luck with this?.... I mean it's been about three years since this issue was opened. Would really appreciate if one of the contributors could give a bit of care.

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

4 participants