wankdanker / node-object-mapper

Copy properties from one object to another.
MIT License
277 stars 73 forks source link

[#80] fix null value check not iterating correctly in arrays #95

Open zhouwang13 opened 1 year ago

zhouwang13 commented 1 year ago

Null values on the source object is only mapped for the first element of an array (when a post-fix operator '?' is used).

Test 102 for issue #41 is now failing because the code returns [null] while the test is expecting null. I don't quiet agree with the expected result.

for further details, refer to #80