You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since sift has been refactored to es6 & cleaned up (with 8b1f4b9), the previous feature of providing a custom compare function (added via #97) is broken.
Previously, the compare function was a property of sift, but has since been declared as an exported function which can't be overridden.
I'd suggest to change this back to the previous behavior, or allow to override the compare function by passing it via options. Additionally, I'd like to override the comparable function as well (e.g. do convert a date string to a Date instance), but this is independent from the issue described above and should be tracked in another issue.
The text was updated successfully, but these errors were encountered:
I'd like to override the comparable function as well (e.g. do convert a date string to a Date instance), but this is independent from the issue described above and should be tracked in another issue.
Since sift has been refactored to es6 & cleaned up (with 8b1f4b9), the previous feature of providing a custom
compare
function (added via #97) is broken.Previously, the compare function was a property of
sift
, but has since been declared as an exported function which can't be overridden.I'd suggest to change this back to the previous behavior, or allow to override the compare function by passing it via
options
. Additionally, I'd like to override thecomparable
function as well (e.g. do convert a date string to aDate
instance), but this is independent from the issue described above and should be tracked in another issue.The text was updated successfully, but these errors were encountered: