This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(merge): change implementation (#716)
* fix(merge): use .toStrictEqual instead of .toEqual in tests cf. jestjs/jest#711 `undefined` values being critical to in assessing merge behaviour this is necessary * fix(merge): specify description add meaning of array-like * fix(merge): change implementation - split the implem into merge(target, ...sources) and _merge(target, source), I think it's more simple this way. - I reorganized some of the conditions The description and the test suit should not change. Implementation has changed but behaviour and limitation is the same (Note that the lodash inspired test suite for merge should be passing). * fix: extra-space Co-Authored-By: Yannick Croissant <yannick.croissant@gmail.com> * fix: rename isObjectOrArray to isObjectOrArrayOrFunction
- Loading branch information
Showing
2 changed files
with
64 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters