-
-
Notifications
You must be signed in to change notification settings - Fork 96
Description
When I compare two arrays:
1st arg = ['a', 'b', 'c']
and
2nd arg = ['a', 'b']
results in object:
{ '2': undefined }
I would expect -- given your immense abilities for designing software :P -- to get this:
[null/same?, null/same?, undefined]
if I have this problem:
1st argument: unchanged
2nd arg = ['a', 'c']
result would be:
[null/same?, 'c', undefined]
We don't need to prematurely quibble about perf do we lads?
What about rhs and lhs have an array and an obj?
1st arg = ['a', 'b', 'c']
2nd arg = {'1': "a", 'b': "c"}
I would output this result annotated with metadata:
{
type: Object,
value: 2nd arg = {'1': "a", 'b': "c"}
}
I realize this might be a tad too intrusive, maybe think of some prototype property(maybe through a proxy?) that could annotate the object without the interference to the output value ;)
Typescript custom type comparison support would be extra fancy ca$h that would make me want to SCREAM WITH JOY.
Love always ❤️,
Adrian